Questions tagged [visual-studio-sdk]

The Visual Studio SDK includes documentation, samples, and code to help you develop products that integrate with the Visual Studio product family.

290 questions
0
votes
1 answer

How to get startup project with VsShellUtilities API?

With VsShellUtilities API, I can get the project for a particular file with the GetProject method. How can I get the startup project?
Colonel Panic
  • 132,665
  • 89
  • 401
  • 465
0
votes
1 answer

Retrieving source code model elements

I am working on my first VS extension. The goal is to click on a file in the solution explorer that contains a class or an interface and then by using t4 template to generate related class off of it, e.g. code-contracts, or metadata class, or DTO,…
Valo
  • 1,872
  • 2
  • 15
  • 23
0
votes
1 answer

Visual Studio SDK - GetClassificationSpans doesn't get called

In my classifier class I have a method containing the code below: var handler = ClassificationChanged; if (handler != null) { IVsTextManager textManager = (IVsTextManager)ServiceProvider.GlobalProvider.GetService(typeof(SVsTextManager)); …
0
votes
1 answer

Visual Studio SDK - Handle mouse events for margins

Is there any way to override mouse events connected with the Visual Studio IDE margin? I looked at the IMouseProcessorProvider interface, but it seems to work only with mouse events connected with the code editor window. For example: public override…
0
votes
1 answer

Setting default position for new toolwindow in VsPackage

I'm creating a VsPackage with a ToolWindow and having an issue setting the default position of the window when it is opened for the first time. I need it docked as a new tab in the 'main window' (not exactly sure what this is called - it is the…
bwalker
  • 73
  • 1
  • 5
0
votes
1 answer

Does __VSFINDRESULT have an incorrect value?

I'm creating a custom Visual Studio editor and am currently trying to enable find and replace. In the IVsFindTarget.Find method it says to return __VSFINDRESULT.Found and I'm assuming __VSFINDRESULT.AndReplace flags when a find and replace request…
Adam Driscoll
  • 9,395
  • 9
  • 61
  • 104
0
votes
1 answer

Trying to integrate user-made Bug Reports for TFS; issue with WITDataStore.dll

So from what I can gather online, to be able to save items to a TFS project, all you need to do is reference Microsoft.TeamFoundation.Client and Microsoft.TeamFoundation.WorkItemTracking.Client. So, I run my code and have those files copy to my bin…
Robert Burke
  • 330
  • 2
  • 15
0
votes
1 answer

VS 2013 SDK: Handle code window's contextmenu opening event?

In C# or else VB.Net, using a Visual Studio Package, how I could handle the event that is raised when the contextmenu of the current code window editor is opening and/or fully open?. My intention is to arbitrary enable/disable the CommandBarButton…
ElektroStudios
  • 19,105
  • 33
  • 200
  • 417
0
votes
2 answers

VS 2013 SDK: How to set a CommandBarButton picture?

Following the C# answer of @Carlos Quintero in this other question and next reading him C# article here in this link, I've tried to follow the steps mentioned to set the CommandBarButton.Picture of a menu button, however, when I do it any image…
ElektroStudios
  • 19,105
  • 33
  • 200
  • 417
0
votes
1 answer

VS2013 SDK: Initialize extension, how and when to?

The problem I have is that my extension, which is a default Visual Studio Package project of a command menu, its Initialize method is call when I do click on the command menu name from the Tools menu, but that is not what I want, I just pretend to…
0
votes
1 answer

How to retrieve a list of installed target framework versions from within visual studio extension?

I want to retrieve a list of installed target framework versions (including profiles) from within visual studio extension. Does anybody know how to do this. Actually this is a list which is displayed in New Project dialog window in framework version…
0
votes
1 answer

Install nuget package with a VSPackage

I'm trying to install a nuget package into a project that I am generating with a VSPackage. So far, I am able to create a solution from a project template: Solution4 soln = (Solution4)ApplicationObject.Solution; string prjPath =…
Drake
  • 2,679
  • 4
  • 45
  • 88
0
votes
1 answer

What is the visual studio test host?

vstesthost.exe. What is it? How do I install it? I know it has to do with MSBuild and the Visual Studio SDK(both installed). Google searches are also yielding bupkis.
fir3pho3nixx
  • 155
  • 2
  • 7
0
votes
1 answer

Visual Studio 2013 Extending Solution Explorer Filter

I'm trying to create a VsPackage with a custom filter for the solution explorer. I followed the walkthrough on https://msdn.microsoft.com/en-us/library/hh966591.aspx to the latter, I see the button and I can click it but the filter is never applied.…
user2154171
  • 145
  • 1
  • 1
  • 8
0
votes
1 answer

Roslyn Diagnostic + Visual Studio Colorisation

Does any know where I can location an "simple" example of colourisation of a token based on a Roslyn diagnostic. Yep I can make them Info, Warning, Error or Hidden. So let say want to use Hidden so it doesn't appear in the Errors list/window, but is…
Adam Speight
  • 712
  • 1
  • 9
  • 21