我有一个在Visual Studio中制作的“旧”XAML构建定义;其中构建了一个解决方案并执行了单元测试。 现在我试着在新的TFS 2015网页中做出同样的事情。 我在Visual Studio Test之后创建了一个构建任务。TFS2015 Visual Studio测试:无法加载文件或程序集
但现在测试任务退出代码1并给了我很多 “System.IO.FileNotFoundException:无法加载文件或程序集”错误。 也“警告:MSTestAdapter未能及时发现在课堂上测试...”
所有DLL是他们必须是,新的定义有一个像旧相同的目录结构,但测试任务说有缺失的组件。
任何想法?
更新: 没有,我仍然有同样的错误消息:
Warning: Unable to load types from the test source 'J:\xyz-Tests.dll'. Some or all of the tests in this source may not be discovered. If you are running unit tests for Windows Store apps and referencing custom WinMD type then please visit http://go.microsoft.com/fwlink/?LinkId=238340 for more info. Error details: System.IO.FileNotFoundException: Could not load file or assembly 'xyz_Commons, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
System.IO.FileNotFoundException: Could not load file or assembly 'xyz_Processing, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
System.IO.FileNotFoundException: Could not load file or assembly 'xyzCommons, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
难道测试项目在Visual Studio 2013创建? –
starain-MSFT,是的。 –
尝试Andy的解决方案后,结果如何? –