vsix

VSIX: Adding a Menu Item to the Visual Studio Editor Context Menu

拜拜、爱过 提交于 2019-11-27 06:14:00
问题 I have an internal extension I'd like to add to Visual Studio that should hook up to the Editor Context menu - regardless of what type of file is open. I can handle enabling/visibility dynamically but essentially I'd like it to be accessible on any type of editor file. I've not been able to find the right parent command/group ids to manage to get a custom button to display on the editor context menu. I suspect there's not a single Id but several but any guidance on what I should be looking at

VSIX with Project Templates and NuGet Packages

陌路散爱 提交于 2019-11-27 04:39:28
问题 I have been following this post about how to build a VSIX project that will add some custom MVC project types: http://www.asp.net/mvc/tutorials/mvc-4/custom-mvc-templates I also want to include some additional Nuget packages, so I was following this page from Nuget, but it seems to be for VS2010 and I'm working in 2012. I have the project building, and everything works peachy on my machine. The install works, the new project type appears, and when I create a new project of this type,

Attach debugger onto another Visual Studio instance

孤者浪人 提交于 2019-11-26 23:38:24
问题 I'm doing some visual studio extension development in Visual Studio 2010. It would be useful to debug while developing so I have it configured to open another instance of VS when debugger for F5 ( http://donovanbrown.com/post/How-to-debug-a-Visual-Studio-Extension.aspx). This all works fine but is there a way to attach a debugger to an existing instance of VS2010, I have tried and the breakpoints aren't being hit. There are no errors but wondering if there is a way? I should add I do know how

VSIX - Cannot load file or assembly of a referenced dll

戏子无情 提交于 2019-11-26 22:46:35
问题 My question is very similar to this one, only that the answer and work-around are not working for me. Also I am in Visual Studio 2012. I have a VSPackage which is referencing another project, which is dependent on other dlls. Everytime time I run my package in debug I get an exception that the other dlls cannot be found. They are in the output directory, and they are signed. I tried referencing them directly by the VSPackage project to no avail. Thoughts? 回答1: This problem exists because

vsixmanifest for all: VS 2010, 2012 and 2013

不羁岁月 提交于 2019-11-26 22:22:22
问题 I'm using VSIX Manifest Designer under VS2013. I've added Microsoft.VisualStudio.Pro product identifier and [10.0,13.0) version range to install targets. Despite that fact, I still don't see my VS2010 Professional as an available installation target: The source.extension.vsixmanifest file content is shown below: <?xml version="1.0" encoding="utf-8"?> <PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer

Colors in Visual Studio Extension

人走茶凉 提交于 2019-11-26 20:57:14
问题 I'm developing a VS extension and I want to achieve that my UI will use colors (font, background etc.) depending on the selected VS-color-scheme. What is the best way to do this. Can I bind against some static ressources in my WPF? 回答1: Yes, binding to static VS resources is the best approach. It is supported in VS 2012+ and looks like this: <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:vs

Restrictions on installing extensions or add-ins in Visual Studio 2010 Express

冷暖自知 提交于 2019-11-26 17:57:30
I installed MSVC++ 2010 Express and trying to figure which extensions (vsix) are available to install. There are some extensions in the Extension Manager (section Online Gallery ). All of them from Visual Studio Gallery . To be sure I installed some extension . It, therefore, cannot be said that the express editions of Visual Studio do not support installing Extensions or Add-Ins. At first I decided that Visual Studio Gallery is the place for allowed extensions. I downloaded from there PowerConsole extension and tried to install it. However, I got message box with following text: Visual Studio

Access Visual Studio 2017&#39;s private registry hive

久未见 提交于 2019-11-26 14:36:25
问题 Visual Studio uses a private registry hive instead of "polluting" the system registry - typically found somewhere like this: C:\Users\Abx\AppData\Local\Microsoft\VisualStudio\15.0_4b0ba1c0\privateregistry.bin [In order to determine installed extensions we need to look at the following key: Software\Microsoft\VisualStudio\15.0_4b0ba1c0\ExtensionManager\EnabledExtensions ] What is the simplest way to load and access this file by key in C#? 回答1: To manually review, you can use the regedit.exe

How to debug Visual Studio extensions

最后都变了- 提交于 2019-11-26 10:07:07
问题 I\'m just writing a VSIX extension for Visual Studio 2010 and can\'t figure out how to debug it. One obvious method is to output messages. Extension template uses Trace.WriteLine() . But where to find it\'s output? 回答1: Visual Studio Extensions can be debugged like any other application. You just need to setup the debug experience to launch devenv with the loaded extension. Try the following Right click on the project and select Properties Go to the Debug Tab Click on the radio button for

Restrictions on installing extensions or add-ins in Visual Studio 2010 Express

巧了我就是萌 提交于 2019-11-26 05:39:41
问题 I installed MSVC++ 2010 Express and trying to figure which extensions (vsix) are available to install. There are some extensions in the Extension Manager (section Online Gallery ). All of them from Visual Studio Gallery. To be sure I installed some extension. It, therefore, cannot be said that the express editions of Visual Studio do not support installing Extensions or Add-Ins. At first I decided that Visual Studio Gallery is the place for allowed extensions. I downloaded from there