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

Error trying to read the VSIX manifest file... The system cannot find the file specified

I am trying to build a Visual Studio Package project via Hudson CI. This is a Visual Studio 2010 project. The project builds fine in my dev box, but for some reason, I keep getting the following error only when building in Hudson: C:\Program Files…
Julio Casal
  • 276
  • 3
  • 13
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
5 answers

"Exception has been thrown by the target of an invocation." when building a Visual Studio 2010 VSPackage

I recently create a couple of VSPackages for some Visual Studio extensions (menu bar/command). I compiled them correctly yesterday, checked into TFS (i'm the only one touching this project, FYI). I had already installed these extensions and were…
housemex408
  • 101
  • 1
  • 2
  • 7
4
votes
2 answers

Visual Studio 2010: using a winforms user control in a VSPackage Tool Window

when creating a simple VSPackage with a Tool Window a sample WPF user control is created and added to the Tool Window. Must this user control be of WPF? i have a winforms user control and, when adding it to the tool window it's not getting…
4
votes
4 answers

Get file path from Visual Studio editor

I'm developing a Visual Studio Package, written in C#. How do I get the full path of the active editor programatically?
Daniel Peñalba
  • 30,507
  • 32
  • 137
  • 219
4
votes
1 answer

Where does Visual Studio store data connection strings used in SQL Server Data Tools

If you are familiar of using SSDT tools in visual studio to compare database schema or data then you might be noticed the below picture ... Due to my visual studio add-in work i need to provide end user these connection strings.. Can you please…
Moumit
  • 8,314
  • 9
  • 55
  • 59
4
votes
3 answers

GetClassificationSpans in Visual Studio 2015 doesn't return anything

I have a tagger (subclass of ITagger) and I'm trying to call GetClassificationSpans so I can use the classifications to find comments to format using tags. This worked in Visual Studio 2013, but now when running it in Visual Studio 2015,…
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
1 answer

How to upgrade a 2013 vspackage to visual Studio 2015

I am trying to upgrade a vspackage to be used for visual studio 2015. The vspackage I created in visual studio 2013 and it works in all prior versions I Updated my dev box with Visual studio 2015. Install the Visual studio 2015 SDK. I upgrade the…
Stuart Smith
  • 1,931
  • 15
  • 26
4
votes
1 answer

How to find in VSPackage which version control system a solution uses

I'm new to extending Visual Studio and I'm trying to find way to find which source control system is used by current solution. I created VsPackage project and I am able to obtain reference to solution via IVsSolution and to hook up to solution…
4
votes
2 answers

How to get reference to 'Roslyn' Workspace object from IVsSolution?

I have a VS Package project from which I need to access Roslyn or Microsoft.CodeAnalysis' Workspace OR Solution object from the loaded IVsSolution. I need to know how I could achieve that ? I found this stackoverflow discussion here which suggests…
fahadash
  • 3,133
  • 1
  • 30
  • 59
4
votes
3 answers

Detect current VSIX package's version from code

I am writing a VSIX project and I would like for the code to be able to determine whether an update is available. I know Visual Studio would be able to check for the update, however, I would like for the extension to be able to prompt user…
Nordin
  • 3,087
  • 5
  • 28
  • 35
4
votes
1 answer

Attach VsPackage to Roslyn Instance

I'm trying to create a VsPackage that makes use of the Roslyn Language Services. Under the properties of my VsPackage, I've changed the command line arguments to: /rootsuffix Roslyn When running the project, the instance of Visual Studio that…
JoshVarty
  • 9,066
  • 4
  • 52
  • 80
4
votes
0 answers

How to totally replace existing Language Service with new one

I developed a Visual Studio Language Service to replace one of existing third party's. That existing language service accompanied with Project System (developed in native VC++). And it forces every file open action to use it's own language…
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