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

How to extend project properties page?

Is it possible to add a custom tab to a project properties page in the Visual Studio 2008? What I want to do is to be able to add a custom tab to properties page for the projects created from default project templates (WPF Application, WPF custom…
aku
  • 122,288
  • 32
  • 173
  • 203
4
votes
1 answer

Add Existing File To Visual Studio Project using DTE

I've programatically created a number of files. I want to add them to the visual studio project. I have a reference to the project (DTE.Project). When I execute the code below, I get an error message. project.ProjectItems.AddFromFile(filename); The…
ritcoder
  • 3,274
  • 10
  • 42
  • 62
4
votes
1 answer

How to run Ook!? (VS Language Integration)

I downloaded the Ook! source, opened the .csproj and ran it in debug mode. The VS Experimental Instance fires up as expected, but now I can't figure out how to get to a blank code file so I can actually try writing in Ook! I don't see "Ook!" in any…
mpen
  • 272,448
  • 266
  • 850
  • 1,236
4
votes
2 answers

Developing multiple Visual Studio 2010 extensions

Im working on a couple of independent Visual Studio extensions in separate solutions. When I open one of them and launch the experimental instance in the debugger, the other extensions from the other solutions (which aren't open) are loaded as well.…
gzak
  • 3,908
  • 6
  • 33
  • 56
4
votes
2 answers

How to get IVsBuildableProjectCfg to subscribe to build events?

I am trying to get an instance of the IVsBuildableProjectCfg object, but I have no clue how to get it. I currently can get the DTE Project and/or the IVsHierarchy object representing each active project without a problem. How do you get an instance…
junkyspace
  • 365
  • 4
  • 15
4
votes
1 answer

How do I change the icon for a menu command in Visual Studio Extension?

I have published a Visual Studio 2010 extension called Duplicate Selection which is primarily invoked via the hotkey. However it also has a menu item under the Edit menu. This all works fine, but I would like to change the icon for the menu item.…
Chris L
  • 4,270
  • 1
  • 17
  • 12
4
votes
1 answer

How to create a VisualStudio item template that does not offer numbered file names by default

If I create an item template with default name foo.txt, Visual Studio by default offers the name foo1.txt in the add new dialog, even if there is no foo.txt in the folder. This is normally fine, but I would need to create an item template, that…
Gaspar Nagy
  • 4,422
  • 30
  • 42
4
votes
4 answers

Can't get extensions to work in VS 2010 Professional - should I reinstall?

I've had this problem for a while, and no one I've talked to on the various Microsoft boards I've visited has been able to help me. I have a copy of VS 2010 Professional installed on my laptop. It works pretty well, but extensions simply don't…
Major Productions
  • 5,914
  • 13
  • 70
  • 149
4
votes
1 answer

In EnvDTE's Debugger.GetExpression method, what does "UseAutoExpandRules" mean exactly?

The documentation poignantly explains that this parameter should be "true if the auto-expand rules should be used; otherwise, false.", but what does it mean exactly? I can't seem to find any explanation online.
Omer Raviv
  • 11,409
  • 5
  • 43
  • 82
4
votes
1 answer

Can I create a Visual Studio 2010 Add-In that Uses a WPF Display?

We're working on creating a specialized graphical editor for our enterprise applications. We've looked at and rejected DSLs. Ideally I'd like to have the main interface of the editor be docked like the code windows and use WPF for drawing. Can…
Colin Young
  • 3,018
  • 1
  • 22
  • 46
4
votes
1 answer

Getting Roslyn SemanticModel from ProjectItem in Visual Studio extension

I'm writing a Visual Studio 2015 extension which looks at the contents of the class the user has right clicked on. I've got the ProjectItem, but how do you get the SemanticModel (and SyntaxTree) from this? I need to look up some types of properties…
RandomEngy
  • 14,931
  • 5
  • 70
  • 113
4
votes
1 answer

How do I set the Project's 'Start External Program' setting programmatically?

I have an IWizard which gets access to a Project variable. What code do I need to write to set the 'Start External Program' value in project properties?
Dmitri Nesteruk
  • 23,067
  • 22
  • 97
  • 166
4
votes
1 answer

VS2015 VSIX System.OutOfMemoryException

I created a new VSIX project and added a new item -> Extensibility -> Custom Tool Window Then I tried to build, but it gave an error: 1>------ Build started: Project: JSBQ, Configuration: Debug Any CPU…
4
votes
1 answer

how to pass/transfer out parameter as reflection? - visual studio extensibility c#

I have an out parameter. Is it possible to transfer it as reflection? Can you give me some examples how to do that?
r.r
  • 7,023
  • 28
  • 87
  • 129
4
votes
1 answer

Extending VS 2010: to include additional items on Right Click context menu (add) on solution explorer?

I wish to create an additional item on the context sensitive right click "ADD" on the solution explorer in vs 2010. Basically it currently looks like this New Item Existing Item New Folder Add ASP.NET FOLDER // ACTUALLY THIS IS A MENU with a SUB…
mark smith
  • 20,637
  • 47
  • 135
  • 187