vsix

Strongly naming a 3rd party assembly - Could not load file or assembly

徘徊边缘 提交于 2019-12-03 12:43:09
问题 I am writing a Visual Studio 2012 extension, for internal use, which requires that all assemblies have a strong name. I am dependent on RestSharp (and a few other dlls), and since it is not strongly named, I am adding a strong name to it by following this. Everything works according to the output of the process, and even visual studio claims it is strongly named if I look at the properties of RestSharp.dll in the project references. However, when I go to use my extension I get a

How to create green (or blue) squiggle adornments with a Visual Studio extension

喜夏-厌秋 提交于 2019-12-03 12:22:08
I have a Visual Studio extension that show red error squiggles. I also like to provide squiggles with other colors, for example yellow for warnings. Creating red squiggles can be done by extending the ITagger class, along the lines: internal sealed class MySquigglesTagger : ITagger<IErrorTag> { public IEnumerable<ITagSpan<IErrorTag>> GetTags(NormalizedSnapshotSpanCollection spans) { foreach (IMappingTagSpan<MyTokenTag> myTokenTag in this._aggregator.GetTags(spans)) SnapshotSpan tagSpan = myTokenTag.Span.GetSpans(this._sourceBuffer)[0]; yield return new TagSpan<IErrorTag>(tagSpan, new ErrorTag(

VSIX extension for VS2012 not running when debugging

隐身守侯 提交于 2019-12-03 12:15:40
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 MyLangSyntaxContentTypeDefinition = null; [Export] [FileExtension(FileExtension)] [ContentType(ContentType)] internal static

Where to store credentials for VSIX - Visual Studio 2017 Extension

自作多情 提交于 2019-12-03 08:49:12
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 text Should not be stored in text file Should be stored per user (We can have more then one windows

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

Deadly 提交于 2019-12-03 07:36:20
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? Check out this article: How to: Add and Remove Property Pages . You create a page like so: class DeployPropertyPage : Form, Microsoft.VisualStudio.OLE.Interop.IPropertyPage { . . . . //Summary: Return a stucture describing your

VSIX package build failed without showing the reason (Visual Studio bug)

谁说我不能喝 提交于 2019-12-03 07:19:42
I have to enabled diagnostic mode of MSBuild project build output verbosity to see this: 1>Done executing task "EnableExtension" -- FAILED. (TaskId:81) 1>Done building target "DeployVsixExtensionFiles" in project "myextension.csproj" -- FAILED.: (TargetId:93) ... 1>Build FAILED. 1> 1>Time Elapsed 00:00:01.27 ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ========== My problem is I cannot debug the Visual Studio extension package I'm working on, as the build output says something has failed. What's wired, the obj and bin folders with all content inside (including vsix package), has

Registering an unpacked VSIX extension via MSI without using devenv /setup

不羁岁月 提交于 2019-12-03 04:41:27
We have a Visual Studio extension, currently installed with MSI, since we need to perform certain tasks after the installation (ngen, registering certain COM servers, etc). In the end of the installation, we run devenv.exe /setup (more specifically, devenv.exe /setup /nosetupvstemplates to make it a bit faster) to register the extension in Visual Studio 2012 and above (in 2010 this step was not required, since VS2010 would rebuild the extensions cache on every startup). We're currently looking to move to a partial VSIX installation, but there are certain issues: We have a certain folder

Strongly naming a 3rd party assembly - Could not load file or assembly

让人想犯罪 __ 提交于 2019-12-03 03:15:26
I am writing a Visual Studio 2012 extension, for internal use, which requires that all assemblies have a strong name. I am dependent on RestSharp (and a few other dlls), and since it is not strongly named, I am adding a strong name to it by following this . Everything works according to the output of the process, and even visual studio claims it is strongly named if I look at the properties of RestSharp.dll in the project references. However, when I go to use my extension I get a FileLoadException claiming: Could not load file or assembly 'RestSharp, Version=104.1.0.0, Culture=neutral,

Update Private Gallery atom such that VS shows that an extension update is available

谁说我不能喝 提交于 2019-12-02 21:58:25
I'm using a Visual Studio Private Gallery to publish a VSIX internal to my company. My VSIX shows up in the "Online" section of "Extensions and Updates" in Visual Studio 2012 and I can install it from there: However, once it's installed, I can't figure out how to update my extension in a way that makes it show up in the "Updates" section of that same dialog box, nor can I figure out how to make Visual Studio notify me that an update is available. I've tried various combinations of the following: Increasing the version number in the VSIX itself and in the atom.xml Changing the updated tag

WPF window textbox - editing text affects different window

℡╲_俬逩灬. 提交于 2019-12-02 19:40:53
问题 I am writing a Visual Studio extension for our Dev team (a VSIX solution). When the user activates the extension, they get a form which is a very simple WPF window. The window is loaded using the following code: var myWindow = new SomeWpfWindow(myArgs) { Owner = Application.Current.MainWindow }; myWindow.Show(); This opens and displays a form that the user fills in. The form has lots of TextBoxes that undergo 2-way binding to the DataContext. Nothing too out of the ordinary. Well, apart from