vsx

Append item to Add menu of solution- or project node in Solution Explorer

牧云@^-^@ 提交于 2019-11-29 05:17:56
How can I add a sub menu for the Add menu item when right click on a visual studio solution explorer? I have to add a single sub menu item which will be displayed n right clicking the visual studio solution and move to the Add option in that menu. I am trying using .vsct (vs package). Please help me with valuable suggestions Matze Of course, there are similiar questions, but this seems to be a special case... In general, you need to know the menu´s command- and package id that you want to extend. I usually do this by enabling the EnableVSIPLogging option in the registry as described by this

Supporting user-specified file extensions in custom Visual Studio language service

≯℡__Kan透↙ 提交于 2019-11-28 21:53:14
I'm working on a custom Visual Studio language service, and have several questions regarding the way file extensions are bound to a particular language service. Source files for the language "Example Language" has two primary file extensions: .e1 and .e2 . My extension has a class ExampleLanguagePackage which extends Package . When you use the File → Open command and select a C# file (for example), the "Open" button has a dropdown arrow which allows you to select "Open With...". When you click that button, you are presented with options to open the file in the "CSharp Editor (Default)",

“Visual Studio Integration Package” vs “Visual Studio Add-in”: what is the difference?

做~自己de王妃 提交于 2019-11-28 21:07:20
When creating a new extension for visual studio, there are two project options: "Visual Studio Integration Package" and "Visual Studio Add-in". What is the difference between the two project types and when would you use one over the other? Ok, you can find a full detailed comparison here (there are also links to the previous parts in the series). But basically, add-ins were available as the VS extension type from the very first versions of the VS and built as the COM components. Later on, some limitations were discovered in that approach, so the new extensibility feature was created -- namely

Open a VS 2005 Solution File (.sln) into memory

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-28 09:37:20
问题 I would like to open into memory an existing .sln file. Example of a non-working method: private Solution2 OpenSolution(string filePath) { Solution2 sln; sln.Open(filePath); return sln; } If I have an instance of Solution2 then i can call the method Open; but how can i get an instance of Solution2 ? My goal is then to get the adequate project and read some of its settings... but that's easy having access to the solution. 回答1: You can programmatically create a hidden instance of Visual Studio,

How to add commands to Visual Studio 2012?

别说谁变了你拦得住时间么 提交于 2019-11-28 03:44:17
问题 How can I add custom commands to the keyboard dialog (Tools->Options->Keyboard) in order to trigger them by shortcuts? Unfortunately, I could not find any resource on the web. I crossed this blog post, but it's slightly different, because I'd have to create a menu entry. I only want to show the commands in the keyboard dialog. Just like it worked with macros. 回答1: I have not checked VS 2012 in this area, but I think it's the same as for previous version. All that menu and command stuff is

How do I write to the Visual Studio Output Window in My Custom Tool?

喜欢而已 提交于 2019-11-28 03:34:41
I am writing a custom tool and I currently have it doing what I want as far as functionality. I would like to be able to write to Visual Studio if something goes wrong. (Incorrectly formatted code or whatever). Are there any standards for this? Right now I basically can force the tool to fail and Visual Studio puts in a warning that it has done so. I'd like a category in the Output window with any resulting messages I want to send. I could also live with a more descriptive task/warning in the Error list window. Output Window To write to the "General" output window in Visual Studio, you need to

Append item to Add menu of solution- or project node in Solution Explorer

╄→гoц情女王★ 提交于 2019-11-27 19:05:29
问题 How can I add a sub menu for the Add menu item when right click on a visual studio solution explorer? I have to add a single sub menu item which will be displayed n right clicking the visual studio solution and move to the Add option in that menu. I am trying using .vsct (vs package). Please help me with valuable suggestions 回答1: Of course, there are similiar questions, but this seems to be a special case... In general, you need to know the menu´s command- and package id that you want to

Visual Studio 2010 addin writing articles/tutorials? [closed]

荒凉一梦 提交于 2019-11-27 17:12:57
Does anyone know of some good articles / tutorials on writing addins/plugins for Visual Studio 2010? John Saunders Getting Started with Extending Visual Studio The Visual Studio SDK for 2010 The VS2010 beta forums Visual Studio 2010 New Features, Extensibility Points and Partner Opportunities Most of the information on add-ins is in the SDK. Here's the new Visual Studio 10 extensibility samples 6th July 2009 Sample - VSIX MEF Component Project Template added 7th July 2009 Sample - MEF Container added 10th July 2009 Sample - VS Package MEF Container Project Template added 15th July 2009 Sample

How do I write to the Visual Studio Output Window in My Custom Tool?

杀马特。学长 韩版系。学妹 提交于 2019-11-27 00:07:03
问题 I am writing a custom tool and I currently have it doing what I want as far as functionality. I would like to be able to write to Visual Studio if something goes wrong. (Incorrectly formatted code or whatever). Are there any standards for this? Right now I basically can force the tool to fail and Visual Studio puts in a warning that it has done so. I'd like a category in the Output window with any resulting messages I want to send. I could also live with a more descriptive task/warning in the

Visual Studio 2010 addin writing articles/tutorials? [closed]

跟風遠走 提交于 2019-11-26 18:56:33
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 8 years ago . Does anyone know of some good articles / tutorials on writing addins/plugins for Visual Studio 2010? 回答1: Getting Started with