vsix

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

How to add conditions in Visual Studio Template Schema and generate projects based on conditions

痴心易碎 提交于 2020-04-07 09:19:51
问题 I have a requirement to generate a custom project template using vsix and IWizard. Wizard will show three check boxes. for example (Bot, Tab , Chat). The output solution must have projects only for checkboxes selected in the wizard i.e if both Bot and Tab are selected then Bot.csproj and Tab.csproj projects will be generated in the solution. If all three of them are selected then all projects must be generated. Right now it generates all the projects irrespective of the selection because

How to get project folder on a VSIX project

倾然丶 夕夏残阳落幕 提交于 2020-02-25 03:54:08
问题 I'm developing an extension for VS2015 and i need to get the project folder of the opened solution. And then find the bin folder to get the output DLL. All this because i need to instantiate a class from the output DLL using reflection. I tried to get some information from msdn but it's difficult to me understand. Is there a way to do this? Thanks in advance 回答1: You could try something like this... Find the project file of interest (maybe the startup project), or let the user select it. The

VSIX Extension uses 3rd party DLLs unable to load one of the dependency

ぐ巨炮叔叔 提交于 2020-02-24 12:09:30
问题 I am developing an extension to VS2013. Since it will be installed through MSI, I am changing the base directory to installation folder using ProvideBindingPath attribute to package class. But the 3rd party dll reference which will be loaded in runtime is not picking dll from the probed path. Its always looking into Visual studio devenv.exe folder. Is there any way to force the dll to look into my installation folder. using MD=Microsoft.VisualStudio.Modeling.Shell; MD.ProvideBindingPath

VSIX Extension uses 3rd party DLLs unable to load one of the dependency

血红的双手。 提交于 2020-02-24 12:08:59
问题 I am developing an extension to VS2013. Since it will be installed through MSI, I am changing the base directory to installation folder using ProvideBindingPath attribute to package class. But the 3rd party dll reference which will be loaded in runtime is not picking dll from the probed path. Its always looking into Visual studio devenv.exe folder. Is there any way to force the dll to look into my installation folder. using MD=Microsoft.VisualStudio.Modeling.Shell; MD.ProvideBindingPath

Extend TFS Source-Control-Explorer

随声附和 提交于 2020-01-30 03:56:07
问题 I already created a Visual Studio 2012 extension to place a ComboBox at Source Control Explorer. I am using this guid at my vsct file: <!-- MyComboBox in Source Control Explorer --> <Combo guid="myMainguid" id="cmdSSEComboBox" priority="0x0700" type="DropDownCombo" defaultWidth="130" idCommandList="cmdSSEGetItemsComboBox"> <Parent guid="guidSourceControlExplorer" id="SSEToolBar" /> <CommandFlag>IconAndText</CommandFlag> <CommandFlag>CommandWellOnly</CommandFlag> <Strings> <ButtonText

Exception during initialization of a CodeRefactoringProvider when trying to import DTE

ⅰ亾dé卋堺 提交于 2020-01-25 10:10:47
问题 I am building a custom code refactoring provider as an extension to Visual Studio 2017 and I want it to access the DTE service. To get it I use the ImportingConstructorAttribute and declare the service a parameter: [ExportCodeRefactoringProvider( LanguageNames.CSharp, Name = nameof( MyCodeRefactoringProvider ) )] [Shared] internal class MyCodeRefactoringProvider : CodeRefactoringProvider { private readonly DTE m_dte; [ImportingConstructor] public MyCodeRefactoringProvider( DTE dte ) { m_dte =

Exception during initialization of a CodeRefactoringProvider when trying to import DTE

自古美人都是妖i 提交于 2020-01-25 10:10:09
问题 I am building a custom code refactoring provider as an extension to Visual Studio 2017 and I want it to access the DTE service. To get it I use the ImportingConstructorAttribute and declare the service a parameter: [ExportCodeRefactoringProvider( LanguageNames.CSharp, Name = nameof( MyCodeRefactoringProvider ) )] [Shared] internal class MyCodeRefactoringProvider : CodeRefactoringProvider { private readonly DTE m_dte; [ImportingConstructor] public MyCodeRefactoringProvider( DTE dte ) { m_dte =

Adding a property page to project properties without implementing a project subtype

≯℡__Kan透↙ 提交于 2020-01-25 01:42:23
问题 I'm developing a Visual Studio 2010 package. My package needs to add a new tab to the project properties. All the examples that I could find on adding new tabs add the tabs by implementing project flavors or subtypes. However, I need to add the tab without creating a new project flavor. I know that this must somehow be possible, as other packages are doing it as well (for example, when you install Code Contracts, you get a new Code Contracts tab, and the Code Contracts package does not modify

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