2017-11-29 47 views
1

こんにちは、私の拡張機能をビジュアルスタジオ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のすべての参照を削除する解決策を見つけたFinaly

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

ある。****、私は、Visual Studio 2017年に私のプロジェクトの新しいVSIXを追加した後よりも、その時点で私はすべてのパッケージをnugetからダウンロードし、私のプロジェクトは今コンパイルされています。

+0

ここであなたのソリューションを共有していただきありがとうございます。答えとしてマークすることができ、他のコミュニティメンバーに役立つ可能性があります。良い一日を:) –

関連する問題