vsix

Where to store credentials for VSIX - Visual Studio 2017 Extension

為{幸葍}努か 提交于 2019-12-09 06:57:36
问题 Context: I'm writing VSIX Extension for Visual Studio 2017 which needs connection to REST API that requires user authentication. I decide to use VSPackage to provide service for my extension. To be able to connect and authenticate users I would like to store somewhere user credentials, it could be either username and password or OAuth token - doesn't matter. Question: What will be the best place to store credentials information for VSIX? Requirements: Credentials should not be stored as plain

Store array in options using DialogPage

大憨熊 提交于 2019-12-08 17:02:47
问题 Assume that I need to store any array in the extension just freshly created from the template. I just created new VSIX project, added VSPackage to it, then added option page grid ( DialogPage ). Then I followed instructions from answers to a similar question: DialogPage - string array not persisted. And, for demonstration purposes, let's also add int[] array and plain int with custom type converter . // [standard attributes] [ProvideOptionPage(typeof(OptionPageGrid), "My Category", "My Grid

How to open a tfs work item inside Visual Studio 2010 inside a Extension?

纵饮孤独 提交于 2019-12-08 13:55:55
问题 I'm developing a VS 2010 Extension, and I would like to know if there is a way to open a Work Item in the Team Explorer Work Item Editor ? What code should I call to accomplish this? I'm clueless. 回答1: There is a extension,TEK Workitem, in Visual Studio Gallery, that allows to open workitems and queries in Visual Studio from a hyperlink. You find more details on the Gallery: TFS Extensions Kit. Workitem 回答2: I am not 100% sure what you are asking for because I don't know what the "Team

How to Install WiX Extensions for VS 2017

别来无恙 提交于 2019-12-08 11:15:05
问题 I am new to Visual Studio 2017 Professional, and am trying to replicate my Vs2013 development environment including the installation of WiX extensions. Unfortunately when I attempt to install the Votive2017.vsix file I get an error message: Can someone please assist. I have been struggling with this for the last three hours now, and it is driving me insane. My VS2017 install seems to be complete, sufficient at any rate to compile, run and debug the VS solution that I have ported over from

How to use wizard assemblies attached in VsixMainfest in project templates?

六眼飞鱼酱① 提交于 2019-12-08 06:33:58
问题 I have a vsixmanifest file that has an assembly attribute. The file looks like: <Content> <ProjectTemplate>Solution</ProjectTemplate> <Assembly AssemblyName="SolutionNameWizard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1c39bfcc-223f-4c12-a5dc-55eeca7c61f7"> Assemblies\SolutionNameWizard.dll </Assembly> I know that the assembly name and public key are correct. Now, I am trying to use this assembly in one of my templates. Right now I have: <WizardExtension> <Assembly>SolutionNameWizard,

VSIX loads in experimental instance (debug) but not in non-experimental

限于喜欢 提交于 2019-12-07 23:48:36
问题 I've rebuilt this project twice from the ground up, and I can't figure out why my VSIX' menu items and Options pages are being loaded through debug mode but not by installing the .VSIX file manually. Nothing shows in the Output window and I'm not sure where to look for VS logging of this kind of stuff. THIS WAS WORKING before, but stopped about a week ago. I even created a Hyper-V W8.1 VM and installed VS2015 (final release) and installed the VSIX and it just doesn't seem to load at startup

Visual Studio SDK - How to add a margin glyph on command invoked?

和自甴很熟 提交于 2019-12-07 23:14:02
问题 How can I modify this sample: https://msdn.microsoft.com/en-us/library/ee361745.aspx to have glyphs added to the margin when a button I added is clicked? I have a button which creates a special kind of breakpoint. I would like this kind to be recognized by my own margin glyph. So I wrote the GetTags method in my Tagger class as follows: IEnumerable<ITagSpan<MyBreakpointTag>> ITagger<MyBreakpointTag>.GetTags(NormalizedSnapshotSpanCollection spans) { if (BreakpointManager != null) { DTE2 ide =

Single File Generator not working for .NET Standard Projects in Visual Studio 2017

守給你的承諾、 提交于 2019-12-07 17:02:43
问题 I've implemented a Single File Generator based off the template [1] (that compiles into an installable VSIX output, including the automatic registration of the components) and: It works for classic .NET projects in VS 2015 and VS2017; It works for .NET Core projects in VS2017; But doesn't work for .NET Standard projects in VS2017. All of the HasCustomTool.xml files have the same configuration, all of them have the 'Custom Tool' attribute specified. When I look at the .csproj files, I can see

Programmatically specify Private Extension Gallery in Visual Studio 2012

拟墨画扇 提交于 2019-12-07 14:03:08
问题 One of the newest features in VS 2012 is the ability to create Private Extension Galleries, which allow you to build your own extension repositories and not have to publish them to the world (internal company tools, etc.). I've successfully created one as described in the MSDN blog I referenced, but I'm wondering if anyone knows of a way to programmatically set the details of the gallery - the name and URL, and then "Apply" it - so that each person who wants to access it doesn't have to

VSIX extension - How can I ensure a referenced dll or assembly is included in the VSIX file?

烂漫一生 提交于 2019-12-07 07:38:56
问题 When a user installs my extension, but does not have the latest Visual Studio update installed, the extension fails to resolve Microsoft.CodeAnalysis.CSharp.dll with the followeing message: Could not load file or assembly 'Microsoft.CodeAnalysis.CSharp, Version=1.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. I made sure that the extension does in fact reference this assembly, and it does, but why would this