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

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

I developed an Addin for VS2012, it is displayed in the code window (editor's) context menu. There's a menu which has a sub-menu. Sub-menu items are added dynamically, for instance.. Cut Copy Paste . . . My Menu > sub menu item 1 …
wafers
  • 1,149
  • 4
  • 14
  • 34
0
votes
2 answers

How do I get access to existing icons from other components from a VS package?

I have a Visual Studio package, and I want to display the VS snippets icon - how can I get it?
citizenmatt
  • 18,085
  • 5
  • 55
  • 60
0
votes
1 answer

vsPackage how to store data

I'm playing around with vspackages. For now I'm asking how I can implement some kind of a data storage. Is there a visual studio internal database or somthing which commonly does this? I just need it to store some data not much but enough for using…
Constantin Treiber
  • 420
  • 1
  • 7
  • 18
0
votes
1 answer

How to convert a VS2012 VSpackage to VS2010?

I created a Visual Studio 2012 extension by creating a VSPackage. There is also a VSIX file generated when I build my add-in. I would like to make my extension available on Visual Studio 2010. How can I do?
wip
  • 2,313
  • 5
  • 31
  • 47
0
votes
1 answer

VSPackage not activating document

I'm using this bit of code (as seen from here) in an Extension I'm building: IVsUIShellOpenDocument openDoc = Package.GetGlobalService(typeof(IVsUIShellOpenDocument)) as IVsUIShellOpenDocument; if (openDoc == null) { …
Psytronic
  • 6,043
  • 5
  • 37
  • 56
0
votes
1 answer

How to consume a Service provided by VSPackage A in VSPackage B?

I have two VSPackages. The first one provides a global service. Both VSPackages consume the service. The service is defined as explained in MSDN "How To: Register a Service". I left out the ComVisibleAttribute, because the how-to says it's only…
Sven Amann
  • 565
  • 2
  • 12
0
votes
1 answer

Is it possible to use .ctc files in Visual Studio 2010 packages?

I have a VSPackage that started life off as a Visual Studio 2005 project, was migrated successfully to Visual Studio 2008 and now it is being migrated to Visual Studio 2010. The problem is that all of the menus are defined in a .ctc file which I…
0
votes
2 answers

VS 2012 Start UI Windows from VSPackage

i've started to work with the VS2012 extensibility possibilities. I did the first few Walkthroughs and now I'm trying get further on. What I'm trying is pretty easy I guess... I'm trying to build a simply vspackage which starts an UI window.…
Constantin Treiber
  • 420
  • 1
  • 7
  • 18
0
votes
1 answer

Getting caret position in visual studio's editor

I am currently developing a Visual Studio extension, that needs to open a WPF form after firing a menuCommand. I want to open the form relativly to the caret position, so I need to get the Caret's pixel position. I've checked This article but it…
desegel
  • 421
  • 3
  • 10
0
votes
1 answer

How to deploy SQLServer CE for VSPackage?

I like to deploy SQLServer CE privately on my VSPackage application. I already tried the following information: Using Entity Framework with an SQL Compact Private Installation as well as this one: How to deploy SQL Server Compact Edition 4.0? But I…
Budi Hartanto
  • 337
  • 3
  • 14
0
votes
1 answer

Testing Visual Studio 2008 Package

I'm developing a Visual Studio Integration Package. When I try to run the Unit Tests that are included in the unit test project that is included in the template I get the following failure on the first test: The test adapter 'VsIdeHostAdapter' …
Dave Swersky
  • 34,502
  • 9
  • 78
  • 118
0
votes
1 answer

How to register mouse hover event over Visual Studio menu item?

I'm writing VSIX plugin. I've created an icon on Visual Studio standard toolbar. My custom command is attached to it: var mcs = GetService(typeof(IMenuCommandService)) as OleMenuCommandService; var commandId = new CommandID(GuidList.guidSthCmdSet,…
jwaliszko
  • 16,942
  • 22
  • 92
  • 158
0
votes
1 answer

Troubleshooting Plk Verification for Visual Studio Package in a VSIP Development Edition

I have a custom domain specific language project which was developed a while back, was deployed and run on the same machine inside the normal Visual Studio hive with no problems. Server has been reinstalled and I'm trying to setup the environment…
Alex Duggleby
  • 7,948
  • 5
  • 37
  • 44
0
votes
2 answers

Highlighting code window of visual studio based on line number using VSPackage

I'm building a VSpackage extension to create "VisualStudio Tool Window". I have a grid inside tool window, consisting of numbers. If a user selects a particular row of the grid. That particular line of code should be highlighted. To be more…
0
votes
2 answers

How to get processes to which debugger was attached to during last debugging session

I'm trying to write Visual Studio package which allows attach to processes chosen in previous debugging session. Basically, I know how to attach to processes: var dte = GetGlobalService(typeof(DTE)) as DTE2; if (dte != null) { IList
jwaliszko
  • 16,942
  • 22
  • 92
  • 158