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
6
votes
2 answers

How to determine whether or not EnvDTE.Project object represents a C/C++ project?

I have a Project instance, and I don't understand how to find out the project type/language. Specifically, I need to check for a C/C++ project. The docs seem lacking. Previously, another person added the following bit of magic to my open-source VS…
6
votes
1 answer

Mutation Test tools in C#

I am starting a new project in c# and I am looking for a tool that helps me do mutation tests. I have previously done mutation testing in java using pitest and liked it very much. Now I am looking for such a tool for C# and the only ones i can find…
ziraak
  • 131
  • 3
  • 14
6
votes
4 answers

Debugging Exceptions thrown by Visual Studio Extension

I'm running Visual Studio 2015 with some extensions. I'm trying to debug the following error I'm getting: The errors are logged in ActivityLog.xml: 440 ERROR A MEF Component threw an exception at runtime: System.InvalidCastException: Unable to cast…
6
votes
4 answers

How do I list all the projects in the current solution using EnvDTE?

I've been following MSDN's Hello World guide to developing Visual Studio extensions (this article specifically deals with creating one as a Visual Studio toolbar command). I am trying to list all projects contained in the current/active solution. In…
Veverke
  • 9,208
  • 4
  • 51
  • 95
6
votes
1 answer

VSTS query by WIQL does not return requested fields

I'm building a Widget in VSTS and I'm calling the queryByWiql() method from Work Item Tracking rest client. The query I have is: queryString = { "query": "Select [Microsoft.VSTS.Scheduling.RemainingWork] From WorkItems Where…
davidx1
  • 3,525
  • 9
  • 38
  • 65
6
votes
2 answers

Writing Visual Studio settings in an extension do not stay

In my extension that I am writing for Visual Studio 2015 I want to change the tab size and indent size as at work we have a different setting as when I am developing for opensource project (company history dating our C period). I have written the…
6
votes
0 answers

Extend visual appearance of Visual Studio 2013 solution explorer

The VS productivity power tools extend the solution explorer by eg showing squiggly lines below files with errors and some version control providers can show overlay icons. I know how editor extensions work which annotate the code editor, but I…
6
votes
1 answer

VS 2015 dynamic menu commands don't work as advertised

I'm trying to create dynamic menu items in a VS 2015 extension. The best I can do is to leave the placeholder command visible and active. Here's the most minimal example I could create starting with the VS wizards (sorry for the length, but it…
6
votes
2 answers

Visual Studio regularly throwing exception

Visual Studio 2015 is regularly becoming odd. Keys typed are appearing in semi-random orders, I'll sometimes have to press keys twice or more. I think this seems to be around key words, rather than variable names or literals. After about five…
6
votes
1 answer

Adding Objective C Syntax Highlighting to Visual Studio

I started to try out the new Windows Bridge for iOS (Project Islandwood). The samples work fine, but there is no code highlighting at all. I found a VS Extension called "objc-syntax-highlighting" in the bin folder and was wondering if this adds code…
Rafael Regh
  • 443
  • 5
  • 17
6
votes
1 answer

In a Visual Studio Extension, get the line range of the function in which the debugger is stopped

I have a Visual Studio extension that hooks into debugging events. When the debugger stops at a line of code, my IDebugEventCallback2 callback gets called, and I can find out the filename and line number where the debugger has stopped via…
6
votes
1 answer

What is the difference between these methods of getting DTE2 (Visual Studio 2013)

Based on this question I've tried the following: EnvDTE80.DTE2 dte = ServiceProvider.GlobalProvider.GetService(typeof(EnvDTE80.DTE2)) as EnvDTE80.DTE2; No luck, null object. But based on this MSDN doc I tried the following. EnvDTE80.DTE2 dte =…
6
votes
1 answer

What is the minimal working IVsTextViewCreationListener implementation?

I created a VISX project, and wrote this piece of code: using Microsoft.VisualStudio.Editor; using Microsoft.VisualStudio.TextManager.Interop; using System.ComponentModel.Composition; namespace MyExtension { …
6
votes
1 answer

How to define classification formats for each theme

In my editor extension I use custom classification formats for keywords, identifiers and so on. Of course, there are default formats I could use, because then colors (used by syntax highlighting) will be changed in accordance to the selected…
Matze
  • 5,100
  • 6
  • 46
  • 69
6
votes
1 answer

Deploying MEF component and VS package in the same project

I have one project, which needs to be of two components- a MEF component and a VSPackage. However, I haven't had much luck convincing Visual Studio to load the VSPackage from my VSIX. Here's the .vsixmanifest that I am using:
Puppy
  • 144,682
  • 38
  • 256
  • 465