2011-01-07 60 views
0

我想建立在命令行的解決方案,但是當我運行的MSBuild在一臺機器安裝,我還會收到以下錯誤Visual Studio 2010中:如何使用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,一個非常特定於VS的目錄。

相關問題