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
7
votes
4 answers

Get the Visual Studio color scheme from a VSPackage

How can I get the color scheme programmatically using a VSPackage in C#? I know that I can use IVsUIShell5.GetThemedColor for VS2011, but I don't know how to get it from VS2005, VS2008 or VS2010.
Daniel Peñalba
  • 30,507
  • 32
  • 137
  • 219
6
votes
2 answers

How can i retrieve devenv.exe path for a vspackage installation?

I'm following this tutorial http://msdn.microsoft.com/en-us/library/bb458038.aspx to create a VsPackage Setup. In the part of the creation of an installer class appears a reference to this location in the registry…
mjsr
  • 7,410
  • 18
  • 57
  • 83
6
votes
2 answers

VSIX Project Context Menu

I'm trying to create a Visual Studio 2017 extension, just for fun and to learn how VS extensibility works. My extension must be usable from the Solution Explorer tab as a context menu button, but I would like to include it at a menu level that…
mororo
  • 1,074
  • 2
  • 11
  • 28
6
votes
2 answers

Changing the config file in a Visual Studio Package

I'm building a Visual Studio Package and associated with it, I have an app.config file (which contains some information about connecting to a WCF service). As far as I can tell, this package is actually connecting to the devnev.exe.config…
Alex
  • 7,432
  • 20
  • 75
  • 118
6
votes
2 answers

How to collect types from current solution using Visual Studio Extension?

I have created Visual Studio 2012 Package (using VS2012 SDK). This Extension (if installed on the client's IDE environment) should has, among other things, a functionality of collecting all specific types from currently opened solution which…
6
votes
2 answers

VSIX Package doesn't include referenced project's dependencies

We have a visual studio package (VS Package) that references a class library project (Project A). Project A in turn references another class library project (Project B). So the dependency structure looks like this: VS Package > Project A > Project…
Martyn
  • 1,446
  • 2
  • 19
  • 30
5
votes
1 answer

VSPackage: Modify toolbar button text/tooltip at runtime

I have been developing a Visual Studio extension as an Add-in for VS2008/2010. The new version now is to be done as a VSIX package for VS2010 only (as it has to be .NET 4 anyway), and I am having some troubles with (rather simple, I would think) UI…
TeaDrivenDev
  • 6,591
  • 33
  • 50
5
votes
2 answers

How to customize the context menu in the solution explorer for a specific project type?

Description I have developed a Visual Studio extension (VSPackage) which adds a new Project Type to Visual Studio (using CPS Project System). I also have added some Commands to the VSPackage. When right clicking on my Project Node in the Solution…
A-Sharabiani
  • 17,750
  • 17
  • 113
  • 128
5
votes
2 answers

Visual Studio Extension: Get the path of the current selected file in the Solution Explorer

I'm trying to create my first extension for visual studio and so far I've been following this tutorial to get me started (http://www.diaryofaninja.com/blog/2014/02/18/who-said-building-visual-studio-extensions-was-hard). Now I have a custom menu…
Eux
  • 482
  • 7
  • 16
5
votes
2 answers

Activate Visual Studio's Output window using DTE

I've created a custom output window pane for my VSPackage: Using this code: // Creating Output Window for our package. IVsOutputWindow output = GetService(typeof(SVsOutputWindow)) as IVsOutputWindow; Guid guildGeneral =…
A-Sharabiani
  • 17,750
  • 17
  • 113
  • 128
5
votes
1 answer

Visual Studio menu item appearing multiple times

I've created a menu item for the extension I'm working on; however, it is showing up 4 times in the Tools menu instead of just once. Below is what I have, but I have been unable to figure out why the menu item is showing up more than once. VSCT…
Pallas
  • 1,499
  • 5
  • 25
  • 57
5
votes
3 answers

VSPackage did not load correctly; How to revert "continue to show this error message" status?

Today the VSPackage I'm developing failed to load, and Visual Studio prompted me to check ActivityLog.xml. It also asked "continue to show this error message?" And accidentally I pressed no. The window I'm referring to looks similar to this: How…
Amadeusz Wieczorek
  • 3,139
  • 2
  • 28
  • 32
5
votes
1 answer

Export custom EditorFormatDefinition at runtime

In a Visual Studio extension I've built I need to highlight method invocations within the Visual Studio editor. For example: I would like to use HSV colors to divide up the color spectrum according to to the number of unique invocations. I can…
5
votes
3 answers

How do I programmatically add a file to a Solution?

I am developing a VS Package and part of the functionality that I need to implement is to add a file to the Solution Items of the currently open Solution. This is exactly the same action that would be performed manually if you right-click on a…
Martyn
  • 1,446
  • 2
  • 19
  • 30
4
votes
4 answers

Is there a good way to stream the results from an external process into a Visual Studio output pane?

I have a custom output pane set up in a VsPackage similar to the following: ///-------------------------------------------------------------------------------- /// This property gets the custom output pane.
Dave Clemmer
  • 3,741
  • 12
  • 49
  • 72
1 2
3
24 25