我有一個在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的解決方案後,結果如何? –