Questions tagged [visual-studio-extensions]

Products and Extensions for Visual Studio which help you get the most out of Visual Studio.

The Visual Studio Gallery provides quick access to tools, controls, and templates to help you get the most out of Visual Studio.

Microsoft also offers a tutorial, where you can gather basic informations on how to develop extensions yourself

1700 questions
0
votes
1 answer

Start Roslyn analyzer by button?

I have a Roslyn code analyzer that takes a lot of time to run, so running it either at compilation start or as a whole tree analysis is not appropriate. Instead I would like to have the analysis trigger when the user clicks on a button in the menu…
0
votes
2 answers

Is there extension for viewing navigation history in Visual studio?

Is there extension, that will remember all visited files, and show it? Visited positions also would be great. For example: I opened MyFile1.cs. Extension remembered this. I navigated to function HelloThere() in this file, extension remebered. I…
Pavel
  • 2,602
  • 1
  • 27
  • 34
0
votes
0 answers

Method not found in Visual Studio Extension

When loading the GitStash Plugin into Visual Studio 2015 I get the follow errors. System.MissingMethodException: Method not found: 'Void GitStash.ViewModels.RecommendedActionsViewModel..ctor(GitWrapper.IGitStashWrapper,…
0
votes
1 answer

EnvDTE.CodeNamespace members are empty?

I am trying to find a function in active document however I am struggling with a problem, when the function is inside of a namespace, my code is trying to get the members of the EnvDTE.CodeNamespace object but it returns empty, I tried Children too…
mtilhan
  • 258
  • 4
  • 12
0
votes
0 answers

.xproj does not throw ItemAdded event

I want my extension to do something everytime an item gets added to the project. This works fine for normale Projects or, with some magic (see here), for the Project Type "Website". But i cant get it to work with .xproj. Here my current code to…
Sosian
  • 622
  • 11
  • 28
0
votes
1 answer

Dynamic multi-level menu in Visual Studio

I am currently using the DynamicItemStart feature to create a list of menu items dynamically and it works fine for normal button items. Is there a way to also dynamically create a list of sub-menus that will then contain the actual command buttons?…
Danielku15
  • 1,490
  • 1
  • 13
  • 29
0
votes
1 answer

Creating a multi-targeting VS-version extension that includes CodeLens

I'm using a method to have one VSIX extension for multiple versions of Visual Studio whereby I dynamically load the appropriate DLL based on the detected version. This works fine for most parts of my extension, but not my CodeLens extension. The…
George Duckett
  • 31,770
  • 9
  • 95
  • 162
0
votes
2 answers

How to open the Visual Studio Editor Programmatically in a VSIX project

I am working on a VSIX(Visual Studio Extension) project where I am fetching html text from a Service. I need to open the retrieved html text in the Visual Studio Editor. Any idea on how to achieve it or any sample code ? Thanks
0
votes
1 answer

IFileExtensionRegistryService.GetExtensionsForContentType returns empty array for "CSharp" content type

I'm writing a Visual Studio extension that includes a nested/recursive search and replace. I want my search controls to match the Visual Studio "Find in Files" dialog (with some extra options). I'm trying to implement the "Look at these files…
0
votes
1 answer

Attach Visual Studio debugger to VS IDE Host

I am trying to test an application that is using the Visual Studio 2015 Shell (Isolated). For testing the extension package with Visual Studio, I found samples for older versions. They look like this: [TestMethod] [HostType("VS IDE")] public void…
0
votes
1 answer

Referenced Code not executing in Visual Studio Extension

I have a Visual Studio Extension (VSIX package) that shows a WinForms dialog and then returns a string that is inserted into the code editor window in VS. The WinForm loads fine. I can return a hard coded string and VS puts it into the editor. …
b.pell
  • 3,873
  • 2
  • 28
  • 39
0
votes
1 answer

Restart visual Studio with same project

Often when you install a Visual Studio Extension to Visual Studio 2012 it gives you an option to restart (with the same project open and just as you left it). Is there a way to MANUALLY restart Visual Studio with the same project open, for when VS…
0
votes
1 answer

Dotvvm extension stopped working after update

after updating the dotvvm extension to version 1.0.3.3 the extension does not work anymore. I am getting this error every time I start Visual Studio: LegacySitePackage failed for package [DotvvmPackage]Source: 'mscorlib' Description: Could…
0
votes
1 answer

ContenPresenter TextBlock style not working in Visual Studio ToolWindow Extensibility

This is weird. I've created a custom control called Switch. I've also defined a style for TextBlock.