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

How can I get build/rebuild realtime output

I'm making Visual Studio package where I start devenv.exe and try to build other solution. I need to get building output in realtime, so user can see building progress/output, but I don't know how to do it and if it's even possible. I tried such way…
zdebyman
  • 550
  • 1
  • 4
  • 22
3
votes
0 answers

HowTo get all interfaces types from visual studio solution?

I'm trying to write an extension to visual studio. I need to get a list of all the interfaces types found in all the projects in the current opened solution. So far i have tried doing this using the EnvDev namespace. Is there a way of doing this…
3
votes
4 answers

XamlParseException when using Graph# libraries

I'm trying to use the Graph# libraries in my VSPackage project, but unfortunately there are some obstacles to conquer. Here is what I did: I copied all the following DLL's to a folder /Libraries in the project…
3
votes
3 answers

How to manage undo/redo stack in VSPackage?

I have created VSPackage that provides certain functionality in Visual Studio code window context menu. This action consists of several code edits plus some stuff around. The problem is, each of these code edits get added to the undo stack…
cre8or
  • 387
  • 3
  • 10
2
votes
1 answer

DDEX samples for Visual Studio 2010

I have Visual Studio 2008 and Visual Studio 2010. I installed the SDK for both. In the Visual Studio 2008 SDK there are some samples for DDEX in the directories: Example.BasicProvider …
Craig Stevensson
  • 1,336
  • 4
  • 21
  • 43
2
votes
3 answers

DTEEvents.OnStartupComplete event not working for VSPackage (VSSDK2010)

In the Package constructor I added the event handler for OnStartupComplete event. But when I run the code, the the event handler is not called. What am I doing wrong?
dattebayo
  • 2,012
  • 4
  • 30
  • 40
2
votes
1 answer

Why can't VS create a VSPackage project with a Custom Editor?

I am trying to create a VSPackage project (using the Visual Studio 2010 SP1 SDK), which works perfectly when I don't add a Custom Editor. But when I do, it's stuck at "Creating project VSPackageX..." and Visual Studio is basically…
2
votes
2 answers

Where to find more info on Visual Studio 2010 package development?

I'm trying to find in depth guide on vs package development. I've tried with a few books (Visual Studio 2010 Package Development by Istvan Novak,…
makcro
  • 195
  • 1
  • 3
  • 11
2
votes
1 answer

Binding redirect not effective in VSPackage/VSIX

Main Question I'm using VS2017 (15.9.25) to develop a VSIX VSPackage. The package uses the MySqlConnector 1.0.0 NuGet package, which in turn depends on System.Memory 4.5.4 NuGet package which includes the System.Memory, Version=4.0.1.1,…
2
votes
1 answer

Visual Studio Extensibility: Rectange-s added to Children class of the ScrollbarMargin prevent mouse clicks on the scrollbar

I've developed an extension some time ago that allows to highlight a section of the scrollbar with the specified color, here is how I do it: /// On layout changed analyze the regions and lines and highlight them on the scroll bar if…
cubrman
  • 884
  • 1
  • 9
  • 22
2
votes
1 answer

How to debug a VSPackage project

I installed the VS2010 SDK and created a VSPackage project, with an empty "Initialize" method. [PackageRegistration(UseManagedResourcesOnly = true)] [InstalledProductRegistration("#110", "#112", "1.0", IconResourceID =…
Enyra
  • 17,542
  • 12
  • 35
  • 44
2
votes
1 answer

How to use class library in VsPackage

Following scenario. I have created in VS 2017 a new VSIX Project. There I have inserted a new Tool Window. Additionally I have created a class library. The resulting structure is as follows: The only thing I have change are that I added two…
2
votes
1 answer

VSPackage: How to get selected file when there is no "real" solution opened

I'm developing a VSPackage in C#, and I would like to know how to get the current file, when only a single file (or several files are opened in Visual Studio). All works fine when there is a hierarchy (a real solution opened). But when I open a…
Daniel Peñalba
  • 30,507
  • 32
  • 137
  • 219
2
votes
0 answers

Add Item to Object Explorer Context Menu in SSMS

I am writing a VSPackage Extention for SQL Server Management Studio (SSMS) 2016. I am currently facing the challenge to add an item or a submenu in the "right-click" context menu when clicking on a SQL Server Instance. I want to add a submenu of…
tuxmania
  • 906
  • 2
  • 9
  • 28
2
votes
1 answer

Add code in specific point with Roslyn

Is there a way to add a code in a specific point with Roslyn (also without roslyn)? This is my problem: I develop a vspackage that add a command in the context menu (in CODE WINDOW). When I right click and I select this command it should add some…
blinkettaro
  • 341
  • 6
  • 18