vsix

VSIX newtonsoft isn't in package (VS>15.5) suppress package

巧了我就是萌 提交于 2019-12-05 14:27:57
We have a solution for vsix projects. Until version 15.4 of visual studio packages were produced with newtonsoft.json.dll, however, since that version, newsoft were excluded from the package. For what I have seen, this is caused because "Microsoft.VsSDK.targets" located in "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Microsoft\VisualStudio\v15.0\VSSDK\Microsoft.VsSDK.targets" has a new exclusion rule "" Our solution needs NewtonSoft, if I install vsix with VS >=15.5, regarding newtonsoft isn't in package, it fails requesting this assembly in %appdata%\microsoft

Visual Studio extension could not find a required assembly

醉酒当歌 提交于 2019-12-05 09:13:25
I wrote an extension for Visual Studio 2013. Because of bloody ComboBox bug , I had to include System.Windows.Interactivity to my project. To add more details: <Project> uses additional solution assembly, say <Project>.Editor, which contains the physical editor. <Project>.Editor references System.Windows.Interactivity <Project> references System.Windows.Interactivity as well. In fact, I'm using nuget to load Expression.Blend.Sdk package (it's compatible with WPF 4.5) Effect: When part of editor, which contains mentioned ComboBox displays, I immediately get an exception: A first chance

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

允我心安 提交于 2019-12-05 08:50:12
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 information (other than confirming it is installed, and has a newer version than its counterpart already

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

落爺英雄遲暮 提交于 2019-12-05 08:25:01
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 assembly be excluded from the VSIX file? I renamed the VSIX file to a ZIP, looked at the contents, but this

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

落爺英雄遲暮 提交于 2019-12-05 03:51:12
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>AngularComponentTemplate.ico</Icon> <ProjectType>CSharp</ProjectType> <ProjectSubType>Web</ProjectSubType>

VSIX: execute code on VS startup

柔情痞子 提交于 2019-12-05 02:45:50
I'd like to call some code from VSIX extension when visual studio loads a solution, how do I do that? Package::Initialize is called only when user presses a button of my addin first time. Try adding the following attribute to your VSPackage class: [ProvideAutoLoad(Microsoft.VisualStudio.Shell.Interop.UIContextGuids80.SolutionExists)] That will trigger your package to load when a solution is opened/created. Author asked about VS2010, so it should be: [ProvideAutoLoad(VSConstants.UICONTEXT.SolutionExists_string)] VSConstants sit in: \Microsoft Visual Studio 2010 SDK SP1\VisualStudioIntegration

NuGet Package which installs a VSIX

不羁的心 提交于 2019-12-04 15:02:11
We developed a "Custom Tool" type VSIX Visual Studio Extension in our company. This extension generates C# code from certain xml files. Right now I have a projects which produces the VSIX as the result of the build. Goal: I would like to also wrap this VSIX into a NuGet package, what my fellow developers can install onto their solution. So I'm searching for some kind of Project Template or something for that. Or it is even good if there's something which triggers the process in the existing project (which now produces the VSIX). I don't seem to find any template for that in Visual Studio (2013

How to deploy and register a VSPackage supporting multiple versions of Visual Studio (2005, 2008, 2010)?

我与影子孤独终老i 提交于 2019-12-04 14:21:47
问题 I have an open source VSPackage that I would like to release with support for Visual Studio 2005, Visual Studio 2008, and Visual Studio 2010. I'm trying to figure out how to create the installer and how to perform the package registration with each edition of Visual Studio. The deployment research I've done indicates my best bet for an installer is a VSIX inside an MSI. The registration research I've done is a lot less clear. VSPackage registration seems to differ for every edition (VS2005

How do I extend the project properties screen in Visual Studio?

白昼怎懂夜的黑 提交于 2019-12-04 12:01:19
问题 When u view a project properties in Visual Studio u get a number of tabs. The standard ones are "Application", "Build", "Build Events" etc. It is also possible to add custom tabs. For example view the properties of a WebApplication or a VSIX project you get different (extra) tabs. So how do I write a VSIX addin that adds a custom tab to the project properties windows? 回答1: Check out this article: How to: Add and Remove Property Pages. You create a page like so: class DeployPropertyPage : Form

Deploy assembly containing IWizard for project template with VSIX

天大地大妈咪最大 提交于 2019-12-04 09:14:00
问题 I have created an extension for VS 2010 that deploys a project template. The project template uses a custom wizard (in a specific assembly) that is called when I create a new project based on this template. I want to package the assembly containing the wizard within the VSIX, so that it gets deployed somewhere the template can find it (I know GAC is not an option with VSIX). Basically if I deploy the assembly to the GAC, install the VSIX and then create the project the wizard is invoked