Questions tagged [vssdk]

The Visual Studio SDK helps you extend Visual Studio features or integrate new features into Visual Studio. You can distribute your extensions to other users, as well as to the Visual Studio Gallery. The following are some of the ways in which you can extend Visual Studio:

  • Add commands, buttons, menus, and other UI elements to the IDE

  • Add tool windows for new functionality

  • Extend IntelliSense for a given language, or provide IntelliSense for new programming languages

  • Use light bulbs to provide hints and suggestions that help developers write better code

  • Enable support for a new language

  • Add a custom project type

  • Reach millions of developers via the Visual Studio Gallery

54 questions
10
votes
1 answer

How to get IntermediateOutputPath from Visual Studio extension and new csproj format

I have a new-style csproj project file that overrides IntermediateOutputPath. It looks like this: netstandard1.6
ionoy
  • 975
  • 6
  • 19
9
votes
4 answers

VS2017, VSIX: just created AsyncPackage is not being instanced

This is default VSPackage. I added only ProvideAutoLoad attributes. using System; using System.ComponentModel.Design; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Globalization; using…
Denis535
  • 3,407
  • 4
  • 25
  • 36
5
votes
1 answer

Get all method calls

Let's say I have simple project class Program : TestBase { static void Main(string[] args) { } public void Test() { AddItem(new Item()); AddItem(new Item()); } } public class Item { } public class…
FCin
  • 3,804
  • 4
  • 20
  • 49
4
votes
1 answer

Correct way to use MSBuild Task that generates code with Intellisense

Context For some project, we've been attempting to do code generation directly from Visual Studio. The basic idea is that you can create a bunch of (.foo) files, and that each (.foo) file corresponds to a single generated (.foo.cs) file. Basically…
atlaste
  • 30,418
  • 3
  • 57
  • 87
3
votes
2 answers

How to check that the tool window in my VS 2017 extension for is hidden

I'm developing an extension for Visual Studio 2017 which contains custom "toolwindow". This "toolwindow" contains WPF control with a view model subscribed to the Workspace.WorkspaceChanged and EnvDTE.DTE.Events.WindowEvents.WindowActivated events. I…
SENya
  • 1,083
  • 11
  • 26
3
votes
3 answers

VSTS/TFS Extension - Reflect changes in Grid/Board without refreshing entire page

I've written an extension for VSTS/TFS which adds a context menu for creating child work items. The creation of the work items works well, but the change is not reflected in the Grid/Board until I perform a Refresh of the entire page. Is there a way…
shayc
  • 121
  • 9
2
votes
0 answers

Visual Studio SDK: Whole line suggestions

How can I work with the new AI-based suggestion feature using Visual Studio Extensibility? I'm referring to the following new feature (in VS2022?): I can use IAsyncCompletionSource and stuff to add custom entries to the auto-complete list, but I'm…
dotNET
  • 33,414
  • 24
  • 162
  • 251
2
votes
1 answer

Retrieve log file of specific Build task in multi job pipeline in Azure DevOps releases

We have Azure DevOps extension in which one of build task we used to obtain data from release build log to display in release summary tab. This build task works perfect for the single Agent Job pipelines, but we have come across a scenario that…
2
votes
0 answers

Visual Studio Extension - Registering a new service

How do I make sure my service gets registered in the AsyncPackage of my Visual Studio extension? I have been following a sample from VSSDK-Extensibility-Samples. I have also taken a look at how other extensions do it. I tried to do the same yet I…
Mylan719
  • 93
  • 9
2
votes
2 answers

How to open Visual Studio code editor at given Roslyn SyntaxNode?

Given a SyntaxNode instance, how can I open appropriate source code file and place cursor at position where the node resides? I'm writing some simple analyzer. I'm able start it on demand and get a syntax node from current cursor position. But I…
Pawcio
  • 399
  • 5
  • 15
2
votes
0 answers

Display markers in Visual Studio Solution Explorer

I need to display some markers in my Visual Studio extension (As in the image). I have gone through the VS SDK documentation and there are no references in this specific requirement. Is there any way to do this with current SDK? Thanks in…
Bandara
  • 780
  • 8
  • 29
2
votes
2 answers

How to get information about word under mouse position in code editor in visual studio extension

I'm trying to learn how to create visual studio extensions by playing around a little bit. I would like to get all information about word under the mouse in code editor(c#) but I can't figure out how to do it. I don't want to analyze code by myself,…
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

Does anyone know the VSSDK id for the 'Add' submenu group within the Solution Context Menu?

I'm looking to add a new button to the following sub menu group from within the Solution Context Menu in VS 2019 (see red arrow for intended location): The closest I've managed so far is beneath the 'Add' dropdown button in the main menu using the…
benjones
  • 31
  • 4
1
vote
1 answer

TFS / AzureDevOps extension get unique user identity

Are there any possibilities to request a user's global id through the VSS SDK? I mean it's possible to use IdentitiesClient.readIdentity() with a descriptor for example. But this is going to give an object with an ID that is unique only on the given…
K. Roland
  • 332
  • 2
  • 11
1
2 3 4