2011-01-07 7 views
0

私は、コマンドラインからソリューションを構築したいが、私は、私はまだ、次のエラーが表示インストールされているVisual Studio 2010を持つマシンでのMSBuildを実行すると:MsBuildを使用してMsTestテストプロジェクトを含むソリューションをビルドする方法は?

C:\Windows\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets : warning MSB3245: Could not resolve this reference. Could not locate the assembly "Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.

答えて

2

C:\Windows\Microsoft.NET\Framework\**v3.5**\Microsoft.Common.targets

注バージョン番号を、 .targetsファイルのバージョンが間違っています。 VS2010の場合、4.0.30319にする必要があります。 msbuildを起動させるために何をしたのか分かりませんが、VS2010コマンドラインプロンプトを必ず使用してください。それはあなたのトラブルの終わりではないかもしれませんが、アセンブリはC:¥Program Files¥Microsoft Visual Studio 10.0¥Common7¥IDE¥PublicAssembliesにあります。