编译项目时提示 VS 2010 找不到 "Microsoft.VisualStudio.QualityTools.UnitTestFramework" 的引用。
该程序集位于 Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PublicAssemblies 目录下,但是 VS 无法找到它。
使用的项目是没有问题的,在我的旧机器上可以编译!
编辑: 编译时的错误信息如下: error CS0234: The type or namespace name 'VisualStudio' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360,9): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=9.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.