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
3
votes
2 answers
Error compiling C# 6 with Microsoft.Build ( Visual Studio SDK )
This is a working C#6 test code. It compiles on VS2015
namespace testcode
{
class Program
{
static void Main(string[] args)
{
string x = null ;
string y = x?.Substring(0, 2);
return;
…

xvan
- 4,554
- 1
- 22
- 37
3
votes
0 answers
Search Tool: Generate URL from Source File + Line (Visual Studio)
I'll took some time to find a tool (without success) that helps to easily switch from Visual Studio editor to the web frontend of our (git) code repository.
The idea in mind is: In a (chat) discussion about some coding sometime its useful to refer…

550
- 1,070
- 1
- 13
- 28
3
votes
2 answers
Compiling VS 2012 extension from VS 2013/2015
I wrote this extension when VS 2012 came out. At the time I compiled the extension on VS 2012 and only targeted VS 2012.
Then when VS 2013 came out I recompiled the extension so it could also be installed on VS 2013. The extension code itself works…

Xavier Poinas
- 19,377
- 14
- 63
- 95
3
votes
1 answer
VS2010 syntax coloring: how to obtain the previous classification type
I'm trying to play with the new syntax coloring capabilities of VS2010 based on Noah Richards' diff coloring sample. The goal is to create syntax coloring for SpecFlow (http://www.specflow.org).
In my case, finding the syntax elements are fairly…

Gaspar Nagy
- 4,422
- 30
- 42
3
votes
2 answers
VS 2013 SDK: How to keybind hotkey only for Code Window Editor?
In C# or else VB.Net, using a Visual Studio Package, I would like to assign a custom keyboard shortcut to a CommandBarButton, for example Ctrl + E + R, then, when pressed, the associated CommandBarButton should call its Execute method (I imagine…

ElektroStudios
- 19,105
- 33
- 200
- 417
3
votes
1 answer
Cannot find the interop type'Microsoft.Internal.VisualStudio.Shell.Interop.SVsColorThemeService'
I am building a Visual Studio package/extension using Visual Studio 2013 update 4 Community Edition. I am using the standard project template that comes with the Visual Studio SDK under the extensibility projects group.
What I need is the…

Mihail Shishkov
- 14,129
- 7
- 48
- 59
3
votes
1 answer
VSCT.exe Could not load file or assembly
I am trying to build a Visual Studio Package from the command line and running into problems.
The project builds perfectly inside the Visual Studio environment, both release and debug. I am just trying to get the project to build through command…

Sarah Weinberger
- 15,041
- 25
- 83
- 130
3
votes
1 answer
Hook to see when a VS web application finishes starting
I'm writing a Visual Studio Extension (as a VS Package) and I'm trying to measure the time from when the user clicks to start the web application to the time a new tab is opened in the web browser and it's ready to use.
Ideally I want to measure the…

Michael Kropat
- 14,557
- 12
- 70
- 91
3
votes
2 answers
Designing a Visual Studio 2010 Integration Package
I'd like to get started with the Visual Studio 2010 SDK and creating integration packages. All I would like to do for now is provide a new project type and language service. However, I don't know how I should design it...
The package will provide an…

David Brown
- 35,411
- 11
- 83
- 132
3
votes
4 answers
How to extract compilation args for each compilation unit in a vcxproj?
I'm trying to get the compilation args for each compilation unit so I can create the "compilation_commands.json" for my vcxproj that can be used with clang's libTooling.
The libTooling tutorial suggests using a CompilationDatabase to provide the…

Unknown1987
- 1,671
- 13
- 30
3
votes
1 answer
How can I programmatically retrieve a loaded project in Visual Studio 2008?
I want to create an hour counter to monitor my development time on a project. I want the time to increase whenever a certain project is active in Visual Studio 2008.
Can I progammatically find out which *.csproj file is currently active in VS2008?

tomfox66
- 329
- 3
- 10
- 17
3
votes
2 answers
Visual Studio Package: Is it possible to show tooltips on text line markers?
Implementing "squiggle" text line markers in JSLint.NET was quite straight forward as can be seen here:
However, despite implementing IVsTextMarkerClient with the GetTipText method, tooltips are never shown. The GetTipText method is never even…

Qube
- 61
- 5
3
votes
2 answers
How to get IClassifier for the standard classification type?
I have an extension to the MS Visual Studio editor which adds some syntax highlighting to the C++.
I want to ensure that provided SnapshotSpan has standard classification type ("comment"). There are several ways to do this:
1. I can manually parse…

Jarlaxle
- 871
- 10
- 18
3
votes
1 answer
Adding a Property to ENVDTE.Project
I'm trying to work on a Visual Studio Extension that needs to add a property that gets persisted to the current csproj file like so:

Craig Vermeer
- 1,987
- 19
- 29
3
votes
1 answer
Is it possible to add a New Project Wizard with a VSPackage?
I have a VSPackage for Visual Studio 2008 that I created for adding some editor and custom language functionality. I also have a need to add a new project/solution wizard to create a new Solution and a complex series of C++ projects to the solution.…

Gerald
- 23,011
- 10
- 73
- 102