Questions tagged [vspackage]

VSPackages are software modules that extend the Visual Studio IDE by providing UI elements, services, projects, editors, and designers.

VSPackages are part of the Visual Studio eXtensibility (VSX) framework that allow developers to develop software modules to extend the Visual Studio IDE. Typical elements that are developed in VSPackages include tool windows and editors to provide additional UI functionality and menus to provide access to additional services and functions.

363 questions
2
votes
1 answer

Visual Studio 2010 Extensions - Custom Editor for when a class extends a specific type

I am attempting to create a GUI game designer as an extension to Visual Studio 2010 and am looking at using custom editors used with project and item templates to build this functionality ontop of existing XNA project types. I have looked into…
2
votes
2 answers

Setting MSBuild 'Condition' attribute via Visual Studio extension

I have a C# project which is built in a few different configurations. Some of the source files should be always included, and some only in certain configurations. So far I've been doing this with #if ... #endif around the entire files, but I was…
Ashley
  • 2,108
  • 1
  • 14
  • 12
1
vote
2 answers

Refreshing Visual Studio Output Window

I have some C# code writing progress messages to a Visual Studio 2010 EnvDTE.OutputWindowPane. The code is invoked from a Visual Studio menu (it's in a VSPackage). The problem is that the output window is not repainted until all processing…
UweBaemayr
  • 1,861
  • 1
  • 18
  • 21
1
vote
1 answer

What is the Microsoft.VisualStudio.Platform.WindowManagement.dll and where can I get the official ones from Microsoft?

I am looking for access to some functions in the DLL I mentioned above. I am not aware of any Nuget package that provides this DLLs. So my question is, where do I get the latest version of this .dll from MS, and are they compatible with plugins…
Sajal
  • 41
  • 6
1
vote
1 answer

How do you add a click event handler for a ClassifiedTextRun in QuickInfo tip in a Visual Studio extension?

I am working through the VSSDK-Extensibility-Samples project on Github. The quick info project is working fine. I just want to know how to make a ClassifiedTextRun ( word in the tip ) clickable and perform some action when the word is clicked.
1
vote
1 answer

How do you enable drag and drop within a VSPackage ToolWindow?

I have a WPF user control that provides drag and drop functionality within that control. When the user control is hosted within a WPF app, all works fine. However when it is hosted within a VSPackage ToolWindow, drop is disabled altogether. In…
Dave Clemmer
  • 3,741
  • 12
  • 49
  • 72
1
vote
1 answer

Manage sensitive Options data in VSPackage

I'm working on a Visual Studio extension package (VSIX) which needs to connect to a database. I'd also like to take reasonable precautions security-wise when storing sensitive configuration. At the moment, I'm using a standard property-grid Options…
Hydrargyrum
  • 3,378
  • 4
  • 27
  • 41
1
vote
1 answer

"Can't set data buffer before setting document buffer." for IVsTextLines

In my VSIX project this error is shown on the line: (AdapterService as IVsEditorAdaptersFactoryService).SetDataBuffer(textLines, projBuffer as IProjectionBuffer); where textLines is created using CreateInstance method of my package Type…
1
vote
1 answer

"Run Code Analysis" does not run my code analyzer

I have written a code analyzer as part of my Visual Studio Package. This corresponds to the instructions on this page except that it is part of my existing Package and not a stand-alone analyzer. The analyzer registers itself to analyze the the…
1
vote
1 answer

How can I set the caption on an editor window in Visual Studio

I have implemented an annotate function in the Visual Studio Extension AnkhSVN2019 using a custom margin on an editor window. In the current version, the tab on the editor window just contains the filename, and looks identical to a normal editor…
1
vote
0 answers

Resolve dependencies with Castle Windsor using MEF in Visual Studio 2010 addin

I was wondering if there were best practices about using Castle Windsor with Visual Studio 2010 addin, which uses MEF internally to instantiate its controls, such as the IWpfTextView. All the dependencies are registered when the VsPackage is…
Igal Tabachnik
  • 31,174
  • 15
  • 92
  • 157
1
vote
0 answers

Visual Studio Package won't listen to redirect instruction

So the people who make Microsoft.CodeAnalysis.CSharp had a bug in its last release (3.4.0.0). It causes a problem when you try to generate code. I'm able to get around the bug by dropping back to a previous release. When I run it from a console…
Quark Soup
  • 4,272
  • 3
  • 42
  • 74
1
vote
0 answers

ToolStripContainer in VSPackage

I have a VSPackage that has a couple of tool windows in it. As you will know tool windows derive from a class called WindowPane which is completely different from the standard Form class. In my tool windows I have a ToolStrip hosted within a…
Alan Spark
  • 8,152
  • 8
  • 56
  • 91
1
vote
0 answers

Register a Visual Studio 2005/2008 package

I have an existing VSPackage that was originally developed in Visual Studio 2005. Since then the package has been converted into a Visual Studio 2008 project but still retains compatibility with Visual Studio 2005. The problem I am having is that…
1
vote
1 answer

Adding a button for extension near the debug button in the toolbar

I am trying to add a button to the main toolbar next to the green run button. I am only able to add a button under the menus like project, and build etc. Does anyone have any code I could use to get the button to show up next to the run button?
Wirable892
  • 31
  • 4