Questions tagged [vsx]

Visual Studio eXtensibility (VSX) is the ability to develop extensions to the Visual Studio IDE from Microsoft. Extensions are developed using the VSSDK.

Links:

Most of the information on add-ins is in the SDK.

351 questions
4
votes
1 answer

How to get project folder on a VSIX project

I'm developing an extension for VS2015 and i need to get the project folder of the opened solution. And then find the bin folder to get the output DLL. All this because i need to instantiate a class from the output DLL using reflection. I tried to…
4
votes
3 answers

How get the current running Visual Studio installation path from VSPackage

I've created a VSPackage which should copy some XML schema files to Visual Studio's installation path: %VS install path% \Xml\Schemas. I have multiple Visual Studios installed on my machine: Visual Studio 2013 Professional. Visual Studio 2015…
A-Sharabiani
  • 17,750
  • 17
  • 113
  • 128
4
votes
2 answers

Visual Studio Editor, MEF in-Depth

I have been having difficulty simply writing a Visual Studio Editor Extension with MEF (Managed Extensiblity Framework). I thank those who answered my previous question, as they helped me know that I need to work with MEF. I've been trying to learn…
NewProgrammer
  • 121
  • 1
  • 4
4
votes
1 answer

Replacing/Extending Visual Studio's Generate Stub in Visual Studio 2010

When we write the name of a method that doesn't exist, Visual Studio 2010 asks us if we'd like to generate a method stub with that name. What I'd like to know if is it possible to replace that same code stub generating command with one made by…
devoured elysium
  • 101,373
  • 131
  • 340
  • 557
4
votes
1 answer

How to create a VS2010 extension that uses Language Services

Creating extensions got much easier with Vs2010, but this seems not to be the case for everything... My aim: I wnat to make method calls and property uses of STATIC classes ITALIC. (Just like Eclipse and Java) I think I need to talk to the C#…
Hades32
  • 914
  • 2
  • 9
  • 12
4
votes
3 answers

Visual Studio Extensibility - different MEF Export per Visual Studio version?

I'm authoring a Visual Studio extension and I want to [Export] a different implementation of a given interface based on which Visual Studio version is running - for instance, one implementation for Visual Studio 2010 and 2012 and a different one for…
Omer Raviv
  • 11,409
  • 5
  • 43
  • 82
4
votes
1 answer

Accessing the project system from a Visual Studio MEF Editor extension

I'm writing a Visual Studio editor extension using the VS 2010 SDK RC. I'd like to be able to figure out what the references of the current project are. How do I get access to the project corresponding to the current editor? The documentation on…
Daniel Plaisted
  • 16,674
  • 4
  • 44
  • 56
4
votes
1 answer

How to apply stereotypes on UML Relationships' MemberEnds?

I'm running this code on a UML Class Diagram, and it works just fine, but when trying to apply stereotypes from PropertiesEditor in Visual Studio for relationship ends (FirstRole and SecondRole), the stereotypes combo doesn't load even if in code…
Cristi Potlog
  • 313
  • 1
  • 16
4
votes
1 answer

Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) in VS Extensibility walkthrough

I am using the Walkthrough: Part 1 - Creating a Basic Project System exactly as written from the website http://msdn.microsoft.com/en-us/library/cc512961.aspx and the Managed Package Framework for Projects exactly as downloaded from…
Marty
  • 81
  • 1
  • 1
  • 7
4
votes
5 answers

How to implement code folding in C#

I'm beginning to work on a COBOL/BASIC IDE at work (to replace the one that we have currently that's a slight step up from Notepad). It'll be made in C#. The management is really interested in implementing some Visual Studio type features, and a…
ctoneal
  • 412
  • 4
  • 14
4
votes
1 answer

Specifying MSTest Host culture

I'm trying to fix our project's integration tests suite, which is based on MSTest and tests an extension for Visual Studio. These MSTest tests run from within a new Visual Studio instance (which configured as the Test Host). During testing on…
Daniel
  • 153
  • 4
4
votes
1 answer

Drag Drop Within WPF ToolWindow in VS2010 Extension Not Allowed

I have a strange problem here. I've created a simple plugin using the wizard for a Visual Studio Integration Package / VSIX project with a tool window. Within that window I want to do a simple drag/drop from a listbox and drop within the same…
Johan Danforth
  • 4,469
  • 6
  • 37
  • 36
4
votes
2 answers

VB.NET EnvDTE Up-To-Date check before building project

how do I check if a project is up-to-date? I'm basically trying to programmatically build each project in a list but only if they have changed. So does anyone know of a way (using EnvDTE maybe) to check if a project changed and therefore needs to…
Kingamoon
  • 1,467
  • 1
  • 18
  • 32
4
votes
2 answers

Can you programatically execute 'Run Custom Tool' on a ProjectItem in C#?

I was wondering if it is possible to execute 'Run Custom Tool' on a file in the VS Solution? I have the ProjectItem object already. info: C#, Visual Studio 2010 SDK
Phill Duffy
  • 2,805
  • 3
  • 33
  • 45
4
votes
4 answers

How do I run (unit) tests in different folders/projects separately in Visual Studio?

I need some advice as to how I easily can separate test runs for unit tests and integration test in Visual Studio. Often, or always, I structure the solution as presented in the above picture: separate projects for unit tests and integration tests.…
andynil
  • 28,248
  • 2
  • 30
  • 26