Kamlesh
Kamlesh

Reputation: 1

How to disable an extension for VS2017 but enable for VS2019

I have created a ".vsix" package . I have updated the manifest file with "InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[15.0,)"

The command used to install the ".vsix" file is "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\VSIXInstaller.exe" /a /q "C:\ccrc.vsix"

But still the extension gets installed for vs2017.

Any way to disable the extension for vs2017, but keep it enabled for vs2019

Upvotes: 0

Views: 538

Answers (1)

Peter Macej
Peter Macej

Reputation: 5577

You explicitly enabled VS 2017 which is version 15. VS 2019 is version 16. Change your manifest to:

"InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[16.0,)"

Upvotes: 1

Related Questions