6

新しいプロジェクトの CI 用に Hundson Server をセットアップしようとしています。すべてが正常に実行され、プロジェクトのビルド、単体テスト、および FxCop チェックが実行されます。しかし、StyleCop でコードをチェックしようとすると、エラーが発生します。まず、MS VS 2010 を使用して C# で開発し、Hudson サーバーには .Net 4.0 と Windows SDK 7.1 がインストールされています。

これで、StyleCop.Targets を SVN に追加し、.cproj ファイルをファイルにリンクしました。VS2010 でビルドすると、StyleCop の警告を除いてすべて問題なく動作しましたが、Hundson サーバーがプロジェクトをビルドしようとすると、次のエラーが発生します。

error MSB4062: The "StyleCopTask" task could not be loaded from the assembly 
C:\Program Files (x86)\MSBuild\..\StyleCop 4.7\StyleCop.dll. Could not load file or
assembly 'Microsoft.Build.Utilities.v3.5, Version=3.5.0.0, Culture=neutral, 
PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot 
find the file specified. Confirm that the <UsingTask> declaration is correct, 
that the assembly and all its dependencies are available, and that the task 
contains a public class that implements Microsoft.Build.Framework.ITask. 

StyleCop.dll は Hundson サーバーのパスにあります。どこが間違っているのか誰か教えてもらえますか?

4

1 に答える 1