The Visual Studio SDK includes documentation, samples, and code to help you develop products that integrate with the Visual Studio product family.
Questions tagged [visual-studio-sdk]
290 questions
5
votes
4 answers
Build VS 2015 extension on build server without VS installed?
Is it possible to build a Visual Studio 2015 extension project on a build server (TeamCity agent) without Visual Studio installed? What kind of SDK do we need to install?
At the moment we receive the following error message:
error MSB4019: The…

D.R.
- 20,268
- 21
- 102
- 205
5
votes
2 answers
How to debug VSIX extension in VS which is of other version then version of VS SDK being used
I have a solution with my Visual Studio extension. This extension should work in any VS version since VS2010. That's because I use VS 2010 SDK. I made hacks to bind my projects to VS2010 SDK assemblies and targets to work without SDK installed -…

Shrike
- 9,218
- 7
- 68
- 105
5
votes
3 answers
Visual Studio SDK - Handling File Add, Remove, and Rename Events
I'm working on a Visual Studio extension that should listen for events when the user adds, removes, or renames files in the current solution.
The answer to this question notes that VS provides infrastructure for listening to document events like…

Jay Harris
- 95
- 2
- 9
5
votes
1 answer
How to programmatically override the build and launch actions?
I created a custom project template associated with a custom project type. The solution depends heavily on MPF for Projects - Visual Studio 2012 framework.
What i would like to do next is override the default "Build" (F6) and "Start without…

Dante
- 10,722
- 16
- 51
- 63
5
votes
1 answer
How to display waiting popup from Visual Studio extension?
I'm writing an extension that sometimes runs a fairly long batch job in the background, and needs to provide a reasonable indication to the user that it's actually working.
If possible, it would be nice to use the loading popup/ialog that VS2012…

shader
- 801
- 1
- 7
- 25
5
votes
1 answer
Get namespace in a Code Snippet
The Microsoft link here lists three methods that we can use.
But how do we get the current namespace?
I see there is a similar question, but the answer to that is using Macros, which doesnt solve this specific question.
The NameSpace() to do…

dushyantp
- 4,398
- 7
- 37
- 59
5
votes
2 answers
Is there a way to change the background color of the Solution Explorer in Visual Studio 2012?
In Visual Studio 2010 I can use SendMessage to change the background color of the Solution Explorer just like in this question. Since Visual Studio 2012 uses WPF this method is no longer working for me. I can do this with other windows such as Class…

Brian Surowiec
- 17,123
- 8
- 41
- 64
4
votes
1 answer
Custom reference types
It's always been possible to add references for your project in Visual Studio. These show up under the special "References" folder in the solution explorer. You can also add service references, which also get put under their own special folder. I'd…

gzak
- 3,908
- 6
- 33
- 56
4
votes
1 answer
Figuring out Windows SDK used by Visual Studio
I have multiple versions of Windows Software Development Kit installed on my machine which funnily enough the one that has been installed on my machine by Visual studio Installer tool has lower version than the one installed almost a year ago…

MHOOS
- 5,146
- 11
- 39
- 74
4
votes
1 answer
How to create a VisualStudio item template that does not offer numbered file names by default
If I create an item template with default name foo.txt, Visual Studio by default offers the name foo1.txt in the add new dialog, even if there is no foo.txt in the folder.
This is normally fine, but I would need to create an item template, that…

Gaspar Nagy
- 4,422
- 30
- 42
4
votes
1 answer
Visual Studio component import is null in vsix project (MEF)
I'm writing a Visual Studio extension, and I need create my own IWpfTextViewHost (CodeEditor Window). This can be done via the ITextEditorFactoryService but this has to be loaded via the MEF framework.
But my import is always null, but I can't seem…

Tim Ramandt
- 61
- 7
4
votes
0 answers
VS2013 Extensions, VSIX project does not show Item Templates
I downloaded and installed SDK, after that I'm able to see project templates and I created first VSIX Project. But when I right click the project to add Item Templates like "Custom Command" or "Custom Tool Window" there is even no Extensions node…

sairfan
- 970
- 2
- 12
- 20
4
votes
1 answer
Collapsed regions in Visual Studio
I'm doing a Visual Studio extension and it contains editor margin, which show comment for each code line and data linked by line number.
When I have code have collapsed regions (functions, code blocks or regions), I'm getting incorrect line…

Pavel Hairullin
- 51
- 3
4
votes
3 answers
GetClassificationSpans in Visual Studio 2015 doesn't return anything
I have a tagger (subclass of ITagger) and I'm trying to call GetClassificationSpans so I can use the classifications to find comments to format using tags. This worked in Visual Studio 2013, but now when running it in Visual Studio 2015,…

alexand256
- 133
- 5
4
votes
3 answers
Visual Studio Extensibility - different MEF Export per Visual Studio version?
I'm authoring a Visual Studio extension and I want to [Export] a different implementation of a given interface based on which Visual Studio version is running - for instance, one implementation for Visual Studio 2010 and 2012 and a different one for…

Omer Raviv
- 11,409
- 5
- 43
- 82