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

What are these auto-generated files?

I'm developing a VSPackage and I need to know the meaning of all the files in my project, and there are some that I don't…
Yogevnn
  • 1,430
  • 2
  • 18
  • 37
0
votes
2 answers

How to detect that Library code is executed within VS Addin or VS Package vsix

I use Addin in VS 2010 and VS Package (vsix) in VS 2012. Addin and VSPackage uses common libraries. I need detect if the library code (in execution time) is executed by Addin OR VSPackage. Now, I have this code, but always true for Addin AND…
Kiquenet
  • 14,494
  • 35
  • 148
  • 243
0
votes
1 answer

VS Package Extension to add a new project type to the new projects options window

I woulkd like to create a Visual Studio extension. I chose the Package option since the AddIn option will be deprecated from Visual Studio 2013 and above. So i installed Visual Studio 2012, and Visual Studio SDK 2012, and created a new VS Package…
0
votes
1 answer

Client Application Services and VSPackage

I'm currently developing a VSPackage, and it will have some log-in functionality external to the system, so I thought I would use Client Application Services. I have followed online tutorials word for word and cannot seem to get a VSPackage to…
Hux
  • 3,102
  • 1
  • 26
  • 33
0
votes
1 answer

Using IVsSelectionEvents.OnSelectionChanged for with the designer

I'm trying to use IVsMonitorSelection to know when the user is selection a control (label, textbox, etc.) on the designer. So far I get events when the user click on item from the "Solution Explorer" window and when he click on the designer window,…
bbigras
  • 1,311
  • 2
  • 17
  • 32
0
votes
1 answer

How to push the update information for visualstudiogallery?

I upload a VSPackage to http://visualstudiogallery.msdn.microsoft.com/, and when I create a new version VSPackage, how to make visual studio which has installed my VSPackage to update the new version VSPackage?
0
votes
1 answer

VSpackage how to call operations on the project

Is there a way In a VSpackage to issue a clean on the project from code, to issue a rebuild or a build. So basically is there a way in code to call the commands that appears in the context menu when you left click on a project? (though my current…
Karim Tarabishy
  • 1,223
  • 1
  • 13
  • 25
0
votes
1 answer

Is there a way to prevent a ToolWindow from being closed?

Is there a way to hide the "X" closing icon of a ToolWindow or is there a way to use IVsWindowFrameNotify3's OnShow method to discard (ignore) the event? It seems that the OnClose method is called only when VS exit. When the ToolWindow is called,…
bbigras
  • 1,311
  • 2
  • 17
  • 32
0
votes
2 answers

Implement "Navigation bar" for custom editor

When registering a custom language service extension, Visual Studio creates a new options entry for the language within the Text Editor node (in the Visual Studio options dialog). Beneath that node two default nodes are created named General and…
0
votes
1 answer

How to create extension for VS2012 using VS Package on File Save Event

I need to create an extension to do some custom activity, on File Save Event in visual studio. How to achieve this using VS Package. I am struck with below code, any advise? #region Package Members FileEventsListener listener = null; …
0
votes
1 answer

How do I Trace a Dsl/DslPackage at run-time (Visual Studio VS2012)

How do I trace a VS2012 DSL/DSL Package VSIX at run-time. I have an odd bug with an error message, "Value of 'null' is not valid for 'stream'" and I guess it's something to do with deserializing the XML written by the DSL. Although I can add…
jradxl
  • 535
  • 1
  • 4
  • 20
0
votes
1 answer

How do I know what file was selected when the command was selected in the Solution Explorer

I'm writing an extension to Visual Studio using the Visual Studio Package project type. I'd like to add a command to the context menu when right clicking on files and folders in the solution explorer. I've added the command to the menu successfully…
Mykroft
  • 13,077
  • 13
  • 44
  • 72
0
votes
1 answer

How to add sub menus dynamically in VSPackage (Visual Studio 2013 Package)

I managed to implement Dynamically Adding Menu Items This allows dynamically adding menu command. This is nice but its a flat 1-level dynamic menu. Is it possible to create a dynamic sub-menu and attach it to a command? The static way is to create:…
0
votes
1 answer

Execute VSPackage command After build

I have created new VSPackage. Code from VST file:
0
votes
1 answer

Capture method, class, assembly name from right click inside Visual Studio

I'd like to write a Visual Studio Extension that captures the following information when a user right clicks a portion of code Detect if a user has clicked a method and if so get the method name Retrieve the full class name of the method ie…
user1054637
  • 695
  • 11
  • 28