2017-11-29 6 views
1

안녕하세요, Visual Studio 2017 확장을 업그레이드하고 싶지만 Microsoft.VisualStudio.Shell.RegistrationAttribute 오류가 발생했습니다. 이미이 참조가 추가 되었습니까?이 오류는 컴파일 타임에 발생합니다. 추가 할 참조가 있습니까? 그것에 관한 어떤 코멘트?Visual Studio 2017 확장 개발

D:\Visual Studio 2017\VSSDK\VisualStudioIntegration\Common\Assemblies\v4.0\Microsoft.VisualStudio.Shell.Immutable.10.0.dll ,version :10.0.0.0 

내 오류가 나는, 내가 Microsoft.VisualStudio의 모든 참조를 제거 솔루션을 발견 마침내

Severity Code Description Project File Line Suppression State 
Error  CreatePkgDef : error : ArgumentException: No Visual Studio registration attribute found in this assembly.   
Severity Code Description Project File Line Suppression State 
Error  The assembly should contain an instance of the attribute 'Microsoft.VisualStudio.Shell.RegistrationAttribute' defined in assembly 'Microsoft.VisualStudio.Shell.Immutable.10.0' version '10.0.0.0' 
Severity Code Description Project File Line Suppression State 
Error  at Microsoft.VisualStudio.Tools.CreatePkgDef.ProcessAssembly(String fileName, Hive hive, PkgDefContext context, Boolean register, RegistrationMode mode) in f:\dd\src\vssdk\VSIntegration\Tools\src\CreatePkgDef\CreatePkgDef.cs:line 303 

답변

1

입니다. ****, 나는 비주얼 스튜디오 2017에서 내 프로젝트의 새로운 VSIX를 추가 한 후보다 그 시간에 나는 모든 패키지를 nuget에서 다운로드하고 내 프로젝트는 지금 컴파일됩니다.

+0

여기에서 솔루션을 공유해 주셔서 감사합니다. 답변으로 표시하여 다른 커뮤니티 회원에게 도움이 될 수 있습니다. 좋은 하루 되세요 :) –