CreatePkgDef Exception в VS 2019 - PullRequest
       37

CreatePkgDef Exception в VS 2019

1 голос
/ 10 июля 2020

Я пытаюсь создать расширение Visual Studio для моего анализатора Roslyn в VS 2019. Когда я устанавливаю для параметра Generate .pkgdef File значение true, я получаю следующее исключение:

CreatePkgDef : error : ArgumentException: No Visual Studio registration attribute found in this assembly.
The assembly should contain an instance of the attribute 'Microsoft.VisualStudio.Shell.RegistrationAttribute' defined in assembly 'Microsoft.VisualStudio.Shell.Framework' version '16.0.0.0' 
   at Microsoft.VisualStudio.Tools.CreatePkgDef.ProcessAssembly(String fileName, Hive hive, PkgDefContext context, Boolean register, RegistrationMode mode)
   at Microsoft.VisualStudio.Tools.CreatePkgDef.DoCreatePkgDef(InputArguments inputArguments)
   at Microsoft.VisualStudio.Tools.CreatePkgDef.Main(String[] arguments)
...