visual-studio-sdk

Visual Studio 2012-s custom project template not visible

偶尔善良 提交于 2021-02-07 05:53:08
问题 I completed the custom template project tutorial part I from msdn and got a basic project structure working and visible in the File - New - Project menu. Then i advanced to msdn part II and can't get past " Testing a Visual Studio Template " part. When i add the .vstemplate file in the custom project template folder, set the Build Action of all the files under my custom project template folder to ZipProject and change the 2nd and 6th parameter of the [ProvideProjectFactory] to null and ".\

Setting cursor position with Visual Studio Extension

杀马特。学长 韩版系。学妹 提交于 2020-11-30 12:03:05
问题 I'm writing my own Visual Studio 2010 Extension that should help me navigating a rather large solution. I already have a dialog based VS Extension that shows me a class name and a function name depending on some search criteria. I now can click this class/method and I then already can open the correct file and jump to the function. What I now want to do is to set the cursor at the start of that function. My code to jump to the function is: Solution currentSolution = ((EnvDTE.DTE)System

How to create a VisualStudio item template that does not offer numbered file names by default

三世轮回 提交于 2020-06-27 13:07:49
问题 If I create an item template with default name foo.txt , Visual Studio by default offers the name foo1.txt in the add new dialog, even if there is no foo.txt in the folder. This is normally fine, but I would need to create an item template, that does not offer a "1" suffix for the file name by default, exactly like the App.config template behaves. I have checked the App.vstemplate file in the VS2019 installation, but I don't see any special setting that would cause this behavior. Sample: <

How to create a VisualStudio item template that does not offer numbered file names by default

一笑奈何 提交于 2020-06-27 13:07:30
问题 If I create an item template with default name foo.txt , Visual Studio by default offers the name foo1.txt in the add new dialog, even if there is no foo.txt in the folder. This is normally fine, but I would need to create an item template, that does not offer a "1" suffix for the file name by default, exactly like the App.config template behaves. I have checked the App.vstemplate file in the VS2019 installation, but I don't see any special setting that would cause this behavior. Sample: <

Visual Studio SDK get type modifier information - is type abstract or internal?

百般思念 提交于 2020-04-18 12:35:38
问题 I use the IVsObjectList2.GetCategoryField2 method to retrieve different information of a type. Now I wonder how I can retrieve C# specific information like abstract or internal modifier of a type? The Object Browser can displays this informations. Update 1: I have made another attempt to get this information. Via the DynamicTypeService and the IVsHierarchy (of the project) I can get the TypeResolutionService . This can then return the Type I'm are looking for, and form the Type I get the

Visual Studio SDK get type modifier information - is type abstract or internal?

谁说胖子不能爱 提交于 2020-04-18 12:35:36
问题 I use the IVsObjectList2.GetCategoryField2 method to retrieve different information of a type. Now I wonder how I can retrieve C# specific information like abstract or internal modifier of a type? The Object Browser can displays this informations. Update 1: I have made another attempt to get this information. Via the DynamicTypeService and the IVsHierarchy (of the project) I can get the TypeResolutionService . This can then return the Type I'm are looking for, and form the Type I get the

Visual Studio SDK - Handle File Save Event

柔情痞子 提交于 2020-01-31 03:10:26
问题 I would like to run a script after files with certain extensions are saved in visual studio. I am wondering where the event handler for saving a file is located in the Visual Studio SDK API. Can anyone point me in the right direction in terms of API documentation for visual studio extensions. I have found the Visual Studio SDK Reference but some direction or sample examples would be helpful. I want to create partial designer files that are usually generated when the project is built (Mono for

Visual Studio extension development, callback for detecting file deletion from solution explorer

有些话、适合烂在心里 提交于 2020-01-25 09:36:07
问题 I'm making a Visual studio extension, where something happens when a file is saved and when it is deleted. I can detect when the current file is about to be saved using IVsRunningDocTableEvents3 I was trying to find a callback for when a file is deleted from the solution explorer window. I've tried searching for it in the VS sdk 2017 but its really tough to search. Any help will be appreciated. thanks. 回答1: You can use IVsTrackProjectDocuments2.AdviseTrackProjectDocumentsEvents to listen when

VS2010: VSIX installation doesn't deploy item templates inside it

倾然丶 夕夏残阳落幕 提交于 2020-01-24 20:15:11
问题 Given demo solution with two VSX-projects: 1. Add New Project -> Extensibility -> Item Template - "ItemTemplate1" 2. Add New Project -> Extensibility -> VSIX Project - "VSIXProject1" I did no changes in "ItemTemplate1", so it constains default item template (ItemTemplate1.vstemplate): <VSTemplate Version="3.0.0" Type="Item" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005"> <TemplateData> <Name>ItemTemplate1</Name> <Description><No description available></Description> <Icon

Where can I find WSDL.exe?

自闭症网瘾萝莉.ら 提交于 2020-01-12 11:56:18
问题 I have Visual Studio 2010 Ulitmate (with MSDN Premium), but I can't seem to find this file. I have tried installing the Visual Studio SDK but I can't seem to find the file. I have looked in: C:\Windows\Microsoft.NET\Framework\v3.5 C:\Windows\Microsoft.NET\Framework\v4.0.30319 C:\Program Files (x86)\Microsoft Visual Studio 10.0\SDK\v3.5 But I can't seem to find it. (In case you are wondering, I need it to perform these steps.) 回答1: it should be under C:\Program Files (x86)\MicrosoftSdks