问题
Installing extensions in the last few versions of Visual Studio seems easy. However, as far as I understand, they are only installed for the user running the program.
How can an administrator install an extension system-wide so that it is available to all users in Visual Studio?
I'm aware that a small portion of extensions are provided as installers that install the extensions for all users, however, most extensions seem to be provided as VSIX files.
回答1:
VSIXInstaller.exe has the /admin switch that should install an extension for all users.
You can to find and download the needed extension on https://marketplace.visualstudio.com/ and call the VSIXInstaller.exe. For example:
VSIXInstaller.exe /admin path_to_the_vsix.vsix
来源:https://stackoverflow.com/questions/21174656/how-can-i-install-an-extension-so-that-all-users-can-access-it