2

Visual Studio 2010 でビルド定義を編集しようとするたびに、このエラーが発生します。「カスタム アクティビティとサービスの読み込み中に、失敗が 0 件、エラーが 6 件、警告が 0 件ありました」というメッセージが表示されます。情報ダイアログ ボックスに表示され、"Build - Team Foundation" の出力ウィンドウに次のように表示されます。

Summary: There were 0 failures, 6 errors and 0 warnings loading custom activities and services.

Error: Could not load file or assembly 'Microsoft.Scripting, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

Error: Could not load file or assembly 'file:///C:\Users\myUsername\AppData\Local\Temp\VSTFSBuild\26d7c1b8-85e5-45bf-ab92-1dbeaed4388a\Microsoft.Scripting.dll' or one of its dependencies. The system cannot find the file specified.

Error: Could not load file or assembly 'file:///C:\Users\myUsername\AppData\Local\Temp\VSTFSBuild\26d7c1b8-85e5-45bf-ab92-1dbeaed4388a\Microsoft.Scripting.dll' or one of its dependencies. The system cannot find the file specified.

Error: Could not load file or assembly 'Microsoft.Web.Administration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

Error: Could not load file or assembly 'Microsoft.SqlServer.Smo, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.

Error: Could not load file or assembly 'file:///C:\Users\myUsername\AppData\Local\Temp\VSTFSBuild\26d7c1b8-85e5-45bf-ab92-1dbeaed4388a\Microsoft.Web.Administration.dll' or one of its dependencies. The system cannot find the file specified.

ビルド定義を編集するたびにこれらのエラー メッセージが表示されないようにするにはどうすればよいですか?

4

1 に答える 1

1

配置されたビルド エージェントは別の物理マシン上にありますか? はいの場合 (私はそう思います): ビルドサーバーにインストールされない、または到達できない可能性のあるすべての依存関係を含む中央チームプロジェクトを作成するのが一般的です。次に、TFS 管理の build-controller-definition で「カスタム アセンブリへのバージョン管理パス」オプションを使用して、これらの要素を含む TFS フォルダーにアクセスできます。

于 2012-04-25T13:21:06.197 に答える