【发布时间】:2011-12-21 01:31:40
【问题描述】:
当我尝试运行我的单元测试项目时,我收到以下错误:
无法加载文件或程序集 '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)
【问题讨论】:
标签: .net visual-studio visual-studio-2010 unit-testing compiler-errors