vsix

How do I list all the projects in the current solution using EnvDTE?

℡╲_俬逩灬. 提交于 2019-12-10 11:28:58
问题 I've been following MSDN's Hello World guide to developing Visual Studio extensions (this article specifically deals with creating one as a Visual Studio toolbar command). I am trying to list all projects contained in the current/active solution. In the auto generated code for the Command template. I have tried EnvDTE 's Solution 's Projects property, but it shows zero projects. There is a ActiveSolutionProjects property as well, but it also shows an empty array. How is this achieved ? P.S.:

Visual Studio Extension: Access VS Options from arbitrary DLL

喜夏-厌秋 提交于 2019-12-10 10:46:19
问题 I'm currently developing my first VS extension, which needs to provide some options to the user. Following https://msdn.microsoft.com/en-us/library/bb166195.aspx, it was rather easy to come up with my own options page. However, I have not yet found out how to read my options. The solution structure of my extension is as follows: MySolution MyProject (generates a DLL from C# code) MyProjectVSIX Following the tutorial cited above, I have added a VS Package to my VSIX project and configured it

Visual Studio Extension (VSPackage) runs in all Experimental Instances, but does not run after being installed as a .vsix, except in VS2010

拥有回忆 提交于 2019-12-10 05:30:39
问题 I am writing a Visual Studio extension which targets VS2010, VS2012, and VS2013. It runs and is initialized successfully in each Experimental Instance with no issues. When I install the VSIX generated by the build, it installs in all versions without a problem, but only in VS2010 does it actually execute. In the others it's never instantiated or initialized. There are no exceptions being thrown. Running the non-Experimental instance with the /log flag does not produce any other diagnostic

Including a batch file with VSIX

老子叫甜甜 提交于 2019-12-10 04:35:43
问题 I'm trying to create a Visual Studio plugin, it's a menu item that executes batch files. I have no idea how to include the batch files (or any other additional files) with the VSIX when publishing so that they are available to all users that install the extension. 回答1: In solution explorer right click on the batch file (in this case I called it BatchFile.cmd ) and choose 'Properties' In the properties window change: Build Action: Content Include in VSIX: True When the solution is built in

How to include debugging symbols to .vsix package

≯℡__Kan透↙ 提交于 2019-12-10 03:59:39
问题 I have written visual studio extension for private use. The package is still under development but I would like to use it and distribute it to my colleagues. Is it possible to include debugging symbols (.pdb) to .vsix package? I prefer a Visual Studio or Project setting to the package editing. 回答1: There's no setting for it within the VS UI, but you can edit your .csproj or .vbproj file to change it. If you open the .csproj file in notepad, either update or add this under a <PropertyGroup>

What settings should be used to get custom ItemTemplates working with .NET Core projects?

给你一囗甜甜゛ 提交于 2019-12-10 03:31:57
问题 I have a Visual Studio 2017 item template extension that is currently working with ASP.NET projects. It has the following .vstemplate: <VSTemplate Version="3.0.0" Type="Item" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" xmlns:sdk="http://schemas.microsoft.com/developer/vstemplate-sdkextension/2010"> <TemplateData> <Name>Angular Component</Name> <Description>Files for an Angular component</Description> <RequiredFrameworkVersion>4.5</RequiredFrameworkVersion> <Icon

Deploying VSIX using MSI installer

与世无争的帅哥 提交于 2019-12-09 15:57:30
问题 Can anyony help me in "How to install VSIX using MSI installer". For msi installer I'm using visual studio Installer setup project. When I use VSIX with extension manager it works fine. I want to have it as a installer(using msi) instead of using enstension manager. or any best wa yto install and unstall VSIX files 回答1: This isn't a suggested scenario. From MSDN, "You cannot use a Windows Installer package (MSI) to deploy a VSIX package. However, you can extract the contents of a VSIX package

The “GetDeploymentPathFromVsixManifest” task failed unexpectedly

元气小坏坏 提交于 2019-12-09 14:28:56
问题 After installation of visual studio 2017 getting his error for VSIX projects ... any suggestion to resolve the issue? Severity Code Description Project File Line Suppression State Error The "GetDeploymentPathFromVsixManifest" task failed unexpectedly. System.Runtime.InteropServices.COMException (0x80070005): ExternalSettingsManager::GetScopePaths failed to initialize PkgDefManager for C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\devenv.exe at Microsoft

In a Visual Studio Extension, how to detect when the debugger Continues

萝らか妹 提交于 2019-12-09 11:12:25
问题 I need my Visual Studio extension to react to debugging events. I've registered a IDebugEventCallback2 and I'm receiving events, but all I get for each event is an opaque IDebugEvent2 and a Guid, many of which are not only undocumented but don't appear anywhere on the web (or in my registry). My specific requirement at the moment is to know when the process is Continued - ie. the user has hit Continue, Run to cursor, etc. What Guid should I be looking for? Or is there some other event family

VSIX extension for VS2012 not running when debugging

早过忘川 提交于 2019-12-09 09:15:59
问题 I created a new VSIX extension project in Visual Studio 2012, and wrote a MEF classifier (as a test) that should simply highlight all text in a .mylang file. Here are the relevant parts of my .NET 4.5 code: internal static class MyLangLanguage { public const string ContentType = "mylang"; public const string FileExtension = ".mylang"; [Export(typeof(ClassificationTypeDefinition))] [Name(ContentType)] [BaseDefinition("code")] internal static ContentTypeDefinition