当我尝试运行我的单元测试项目时,出现以下错误:
引发此异常的原因是无法加载文件或程序集“ASSEMBLY_NAME,Version=1.0.0.0,Culture=neutral,PublicKeyToken=null”或其某一个依赖项。
系统找不到指定的文件。
被测试的程序集位于同一解决方案中,每个项目都针对.NET 4.0框架。
它之前可以运行,但今天我又遇到了这个错误。
我无法确定问题在哪里,因为错误信息没有告诉我足够的信息。(例如;没说哪个文件找不到..)
我已经尝试添加一个新的测试项目,但是也出现了相同的错误消息。
有人能指导我吗?
编辑:在诊断构建日志中,出现以下错误:
C:\Program Files\MSBuild\Microsoft\VisualStudio\v10.0\TeamTest\
Microsoft.TeamTest.targets(14,5):
error : Could not load file or assembly 'ASSEMBLY_NAME, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null' or one of its dependencies.
The system cannot find the file specified.
Done executing task "BuildShadowTask" -- FAILED. (TaskId:671)
Done building target "ResolveTestReferences" in
project "ASSEMBLY_NAME.Tests.vbproj" -- FAILED.: (TargetId:985)