Questions tagged [vsix]

A VSIX package is a .vsix file that contains one or more Visual Studio extensions (VS2010 onwards).

A VSIX package is a .vsix file that contains one or more Visual Studio extensions, together with the metadata that Extension Manager uses to classify and install the extensions.

That metadata is contained in the VSIX manifest and the [Content_Types].xml file. A VSIX package may also contain one or more Extension.vsixlangpack files to provide localized Setup text, and may contain additional VSIX packages to install dependencies.

Templates are provided in the Visual Studio SDK to enable the creation of vsix packages.

1223 questions
12
votes
4 answers

How can I match Visual Studio's theme when creating a VSIX tool window?

I am creating an extension for Visual Studio (2012+) that involves a tool window. I was hoping to style the window identically to match the current theme of Visual Studio. However, I am having a great deal of trouble figuring out how to do it. This…
12
votes
4 answers

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

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…
Martin Lottering
  • 1,624
  • 19
  • 31
11
votes
2 answers

How to get project inside of Solution Folder in VSIX project

Hi I am having a problem, with a custom build task inside of a Visual Studio Extension. I need to identify projects of my custom project type. I can do this fine if they are on the root of the solution, but the problem occurs when it is inside of a…
DaveGreen
  • 385
  • 3
  • 11
11
votes
3 answers

VSIX: Adding a Menu Item to the Visual Studio Editor Context Menu

I have an internal extension I'd like to add to Visual Studio that should hook up to the Editor Context menu - regardless of what type of file is open. I can handle enabling/visibility dynamically but essentially I'd like it to be accessible on any…
Rick Strahl
  • 17,302
  • 14
  • 89
  • 134
11
votes
3 answers

How to do dll bindingRedirect in a Vsix extension?

I have an extension to VS that should use Gmail api to send mails to certain users in my company. During development I step into a common issue with System.Net.Http.Primitives version that is somehow messed up in Google API. The common solution…
Grzegorz Sławecki
  • 1,727
  • 14
  • 27
11
votes
1 answer

In VS Solution Explorer, how to extend right click menus on source files sub code elements (class/method/field)

I am developing a Visual Studio Extension (VSIX). I need to add custom right-click menus on Solution Explorer right click of class/methods/fields items, that can be found under source file items: In the .vsct file I already extend the Solution…
Patrick from NDepend team
  • 13,237
  • 6
  • 61
  • 92
11
votes
2 answers

Dynamic Visibility of menu item

In my VS extension I need to add menu item for my new project type. But I want it to show for my custom type only. So I added this code to .vcst file:
Seekeer
  • 1,344
  • 2
  • 18
  • 31
11
votes
2 answers

How to package a VSIX-based extension for multiple Visual Studio versions?

I am maintaining a company internal Visual Studio extension that is packaged and deployed as VSIX container. This extension currently targets VS 2010. It uses several VS API DLLs and references the VS 2010 versions of them. I am currently migrating…
11
votes
2 answers

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

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.:…
jwaliszko
  • 16,942
  • 22
  • 92
  • 158
10
votes
1 answer

How to get IntermediateOutputPath from Visual Studio extension and new csproj format

I have a new-style csproj project file that overrides IntermediateOutputPath. It looks like this: netstandard1.6
ionoy
  • 975
  • 6
  • 19
10
votes
1 answer

In my VS extension, how can I programmatically preview a file in Visual Studio 2015/2017?

In my Visual Studio extension I display related files. I have code that can open a file in Visual Studio. I want code that can preview a file This is the code I use to open a file using the DTE2 object. But how can I preview the file? public void…
Martin Lottering
  • 1,624
  • 19
  • 31
10
votes
2 answers

Add VSIX features to C# Class Library

I have an existing Single-File Generator (housed in a C# Class Library). How do you add the VSIX project-level features to this project? The end goal is to compile my class library project and get a VSIX. (I'm actually answering my own question.…
harley.333
  • 3,696
  • 2
  • 26
  • 31
10
votes
4 answers

VSIX: Getting DTE object

My Visual Studio package requires the use of an EnvDTE.DTE variable, but it always gets back as null. After reading up on many hacks, all of them say to use the OnShellPropertyChange() method (IVsShellPropertyEvents), but sometimes it just never…
hb.
  • 1,705
  • 5
  • 22
  • 43
10
votes
1 answer

VSIX - Deadlock on XmlEditingScope.Complete()

We are using the classes in the Microsoft.VisualStudio.XmlEditor namespace (https://msdn.microsoft.com/en-us/library/microsoft.visualstudio.xmleditor.aspx) to modify an xml document in an Visual Studio Extension. For some reason a deadlock occurs…
TWT
  • 2,511
  • 1
  • 23
  • 37
10
votes
0 answers

VSIX - Use "Managed Compatibility Mode" debug engine

Does somebody know how we can use the "Managed Compatibility Mode" debugger, to attach to a process from inside a VSIX package code with VS2015? We currently use the following code, to find the "Managed 4.0" engine, but it seems that the "Managed…
TWT
  • 2,511
  • 1
  • 23
  • 37
1 2
3
81 82