Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual studio does not install .vsix files

I've both VS 2012 and VS 2013 installed on my computer. The problem is that when I download an VSIX-File and open it with the Visual Studio version selector the file gets opened by VS but instead of installing it. VS opens the file as if it was an unknown binary format.

The attached image shows how VSIX-files are opened (happens with every file ... this is just an example):

enter image description here

like image 616
Eggi Avatar asked Sep 18 '14 07:09

Eggi


People also ask

How do I import VSIX files into Visual Studio?

vsix files may be available in locations other than Visual Studio Marketplace. The Extensions > Manage Extensions dialog box can't detect these files, but you can install a . vsix file by double-clicking the file or selecting the file and pressing Enter. After that, just follow the instructions.

How do I install an extension file in Visual Studio?

Open in VisualStudio the folder that contain the "nameFile. vsix" file. File, Open Folder..., click right in the "nameFile. vsix" into de VisualStudio, and click in install extension VSIX.

What is a .vsix file?

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

How do I run VSIX as administrator?

Steps: Open Developer Command Prompt for Visual Studio > type cd XXXX (replace XXXX with the path for example, for VS 2019 Community, C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE ) > press Enter > type VSIXInstaller.exe > press Enter > check if the extension has been installed.


3 Answers

I faced the same issue. Just use the VSIXInstaller to install the extension.

You can open "Developer Command Prompt for VS2012" tool in Start -> Microsoft Visual Studio 2012 -> Visual Studio Tools. On the console, run the below command:

VSIXInstaller <path to vsix file>

like image 54
Tri Nguyen Avatar answered Oct 17 '22 06:10

Tri Nguyen


  1. Open "Developer Command Prompt for VS2015" as administrator.
  2. Type VSIXInstaller.exe vsixFilePath

Note that this way wouldn't work with me and gives me "Path to vsix file 'G:\Roslyn' is invaild or you don't have required access permissions". To solve this you need to put the path in a double quote like this:

 VSIXInstaller.exe "G:\Roslyn SDK.vsix"
like image 16
Wael Alshabani Avatar answered Oct 17 '22 05:10

Wael Alshabani


I got into a weird situation where in a fresh install of W10 and VS2015 Community, the Player Framework vsix installation won't start, either by dbl click or from command prompt using VSIxInstaller.exe, and would show no message at all. The solution was to open an elevated command prompt (run Developer Command Prompt for VS2015 as administrator) and then type VSIXInstaller.exe worked.

like image 3
user2693908 Avatar answered Oct 17 '22 04:10

user2693908