Questions tagged [vspackage]

VSPackages are software modules that extend the Visual Studio IDE by providing UI elements, services, projects, editors, and designers.

VSPackages are part of the Visual Studio eXtensibility (VSX) framework that allow developers to develop software modules to extend the Visual Studio IDE. Typical elements that are developed in VSPackages include tool windows and editors to provide additional UI functionality and menus to provide access to additional services and functions.

363 questions
2
votes
1 answer

NullReferenceException when trying to install Visual Studio extension in VS 2015

So I'm trying to install my Visual Studio extension in Visual Studio 2015 but I'm getting this install error when trying: System.NullReferenceException: Object reference not set to an instance of an object The strange thing is that I can run the…
2
votes
2 answers

VisualStudio VSPackage Custom Command

I'm writing a little extension for Visual Studio 2015. I added a VSPackage to to embed some CustomCommands on the Shortcut Menu you get when you RightClick on a Project or a Folder inside the Solution Explorer. What I would like to do now is "open…
Easly
  • 334
  • 2
  • 11
2
votes
1 answer

Visual Studio private gallery auto update extensions

So I created a private extension gallery in Visual Studio and published an extension. I wanted to create another extension which would automatically update the first one when an update is available. I found a sample source code…
user5218353
2
votes
1 answer

Can a VS2010 VSPackage project be installed to VS2008?

I am wondering whether the result VSIX artifact of a VSPackage project created and written in Visual Studio 2010 can be deployed to Visual Studio 2008 - provided, of course, that the package does not use/rely on any .NET 4 assemblies? Alternatively,…
2
votes
2 answers

Visual Studio Shell 2014 - hide exception settings tool window

I have an existing shell app and after the shell upgrade (from 12 to 14) the Exception settings tool window is included in the app. I would like to hide it due to it makes no sense in my app. Do you have any idea how to deregister it? I think…
tstanitz
  • 111
  • 1
  • 11
2
votes
1 answer

Visual Studio Shell 14 upgrade ruins command capturing in VSPackage

I have a Visual Studio Shell 2013 application and I would like to upgrade to Shell 2015 and I faced with a problem related to command capturing. In the old version the F1 command is captured and overwrite the default behaviour. (based on How to…
tstanitz
  • 111
  • 1
  • 11
2
votes
0 answers

How to create a VSPackage with a custom project type, menus and snippets

Using Visual Studio 2015 SDK and Extensibility Project templates, I want to develop a Visual Studio Extension (my_vs_extension.vsix). After installing this extension, this features should be added to the VS: A new project type added to the Add new…
A-Sharabiani
  • 17,750
  • 17
  • 113
  • 128
2
votes
1 answer

How to get DTE object from command-line C++ VSPackage

I have a C++ VSPackage that is command-line only. Setting the following Autoload registry key in my pkgdef file, does not force the VSPackage to get loaded when running devenv from the command…
magwitch
  • 43
  • 3
2
votes
1 answer

How do I get an instance of IVsExpansionClient in VSPackage?

Documentation for extending Visual Studio is virtually nonexistent, and I managed to assemble a few lines of functioning code hacked together from a dozen or more obscure sources around the interwebs before crashing into a brick wall. All I need to…
XamlZealot
  • 693
  • 5
  • 12
2
votes
0 answers

Visual Studio - How to handle Project Property Changes

I have a UserControl that has to read a string (an URL) from a file At Design Time. So I made a VSPackage that exposes a Menu Command in the Visual Studio IDE; clicking on the command the user will be able to provide the URL via a WPF window and…
rPulvi
  • 946
  • 8
  • 33
2
votes
3 answers

How to open a tool window of a visual studio extension programmatically?

So I've got two tool windows in my visual studio extension (package) and I'd like to open up the second window via a button on the first window. I expected this to be explained here: "How to: Open a Tool Window Programmatically", but it wasn't.
mYnDstrEAm
  • 751
  • 2
  • 8
  • 26
2
votes
1 answer

How to deploy and register a VSPackage supporting multiple versions of Visual Studio (2005, 2008, 2010)?

I have an open source VSPackage that I would like to release with support for Visual Studio 2005, Visual Studio 2008, and Visual Studio 2010. I'm trying to figure out how to create the installer and how to perform the package registration with each…
Steve Cadwallader
  • 2,656
  • 4
  • 28
  • 37
2
votes
1 answer

VSPackage: add a context menu item where another extension may conflict

I have installed the Oracle Developer Tools for Visual Studio and I am attempting to create a VSPackage extension for packaging Oracle scripts for release. I would like the extension to work by allowing the user to right click on the deployment…
Sven Hoek
  • 23
  • 3
2
votes
1 answer

allowing to insert breakpoint in visual studio editor extension

Add Syntax Highlighting to IElisonBuffer I follow this question and implement my visual studio editor extension. I got everything working fine: syntax highlight, completion...but I cannot add breakpoint even thought the options was there in the…
2
votes
1 answer

Can I pass an argument/switch/parameter to a VSPackage MenuCommand?

I was hoping someone here might be able to help me out with this. I'm not the most experienced programmer but I'm making progress on a project. I've got a need to programmatically interact with Visual Studio. Some success has been had using EnvDTE…