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
3
votes
1 answer

VSCT.exe Could not load file or assembly

I am trying to build a Visual Studio Package from the command line and running into problems. The project builds perfectly inside the Visual Studio environment, both release and debug. I am just trying to get the project to build through command…
Sarah Weinberger
  • 15,041
  • 25
  • 83
  • 130
3
votes
1 answer

Visual Studio Extensions - support multiple versions of VS

I've been writing an extension (Editor Classifier project, with some other features chipped in. It works fine on VS2013, but I need to support other versions VS2012 and VS2015(when it is out of Preview). When I just add supported versions in the…
3
votes
1 answer

Hook to see when a VS web application finishes starting

I'm writing a Visual Studio Extension (as a VS Package) and I'm trying to measure the time from when the user clicks to start the web application to the time a new tab is opened in the web browser and it's ready to use. Ideally I want to measure the…
Michael Kropat
  • 14,557
  • 12
  • 70
  • 91
3
votes
1 answer

Is it possible to write the current VS solution file from a VS package without having the File Modification Detected dialog

From a VS package code, I wonder if there is an API to write the currently opened VS solution file without having the File Modification Detected dialog. I need to write a custom GlobalSection: GlobalSection(MyProduct) = preSolution MyData =…
Patrick from NDepend team
  • 13,237
  • 6
  • 61
  • 92
3
votes
2 answers

Automatically update Visual Studio Extension

I'm trying to make my extension automatically update itself when new versions are pushed to the Visual Studio Gallery. There are a few guides on how one may achieve this, but they are a couple years old and may not apply. For starters, I'm trying to…
3
votes
1 answer

How to read the version of an installed VSPackage

I want to check the version of the currently installed VSPackage to notify the users if his version is outdated. I don't want to upload my extension (yet), so I can't use the built-in update feature. How can I read the version of my extension that…
flayn
  • 5,272
  • 4
  • 48
  • 69
3
votes
1 answer

Modifying emularor/device list of visual studio 2013

I am using Managed Package Framework (MPF) to create custom language service. I want to add few emulators/devices in "Start" Combobox, for example How can I do that? Update 1: After some research, I came to know that you need to extend an abstract…
3
votes
2 answers

How do you cancel a ToolWindowPane or Visual Studio IDE close operation via a VSPackage?

I have a VSPackage with a dockable tool window containing form data. If there are unsaved changes in this form, I would like to cancel a close to either the tool window and the visual studio IDE if the user clicks cancel on saving changes before…
Dave Clemmer
  • 3,741
  • 12
  • 49
  • 72
3
votes
1 answer

How to update the contents of a DynamicItemStart button inside a VS package

I'm doing a VS package that has a DynamicItemStart button inside a Menu. I don't have any problem by loading the contents of the Dynamic button when VS starts, but I'm trying to add more commands to its contents after some events like Open a project…
gab
  • 325
  • 1
  • 12
3
votes
2 answers

Visual Studio Package - How can I get hold of the information in the locals window?

I have a VSPackage that I would like to get information similar to that shown in the locals window when in debug mode (the values of variables for the current context). I have been experimenting with the DTE.Debugger.CurrentStackFrame instance which…
Alan Spark
  • 8,152
  • 8
  • 56
  • 91
3
votes
0 answers

How to handle pressing any keys in the user control in visual studio vspackage

I added usercontrol (textbox) in code editor control. But textbox not handle any keys (arrow, backspace). Keys handle code editor only. Example: get IWpfTextView var textManager =…
Sequd
  • 91
  • 8
3
votes
0 answers

Assembly loader confusing behaviour

I am developing VS2012 Package (using SDK), which implements custom visual designer. The Solution contains a several projects. When I run my package in VS experimental instance, then try to open my custom visual designer, I get a following…
3
votes
1 answer

MSI installed VSPackage is loaded in Experimental Instance only

My package is only loaded in Experimental Instance. I have the following package class attributes: [PackageRegistration(UseManagedResourcesOnly = true)] [InstalledProductRegistration("#110", "#112", "3.6.1365", IconResourceID =…
Taras Kozubski
  • 1,854
  • 1
  • 20
  • 33
3
votes
1 answer

Keyboard navigation not working in WPF window inside Visual Studio

I'm developing a VS-Package that shows a WPF window when a MenuCommand is invoked. inside this WPF window I have a listBox, which is focused immediatly when the window is loaded. when I show the window via myWindow.ShowDialog(), the arrow up/down…
3
votes
3 answers

How to register key binding code on VSIX package installation

I'd like to add keyboard shortcut to Visual Studio package only once, during its installation. Basically I know how to do it from the package code, for example: var dte = GetGlobalService(typeof(DTE)) as DTE2; if (dte != null) { …
jwaliszko
  • 16,942
  • 22
  • 92
  • 158