請注意,我正在關注本課程,目前在模塊 5 中:https ://www.pluralsight.com/courses/wcf-end-to-end
問題是我正在嘗試運行單元測驗,但每次我都會收到上述錯誤。這是完整的堆疊跟蹤:
https://pastebin.com/aQHeeUyp
我可以讓它作業NUnit,但如果我將專案切換到MsTest然后我得到上述錯誤。請注意,我研究了以下各種帖子,但尚未解決錯誤:
VS2017 無法加載檔案或程式集 Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll 或其依賴項之一
無法加載檔案或程式集“Microsoft.VisualStudio.TestPlatform.ObjectModel,版本=11.0.0.0”
https://social.msdn.microsoft.com/Forums/SECURITY/en-US/4c69c666-85ca-4d1c-b3ad-ff564578743d/unit-tests-are-not-running-not-seeing-existing-unit-tests-添加新單元測驗專案空?forum=vsunittest
https://social.msdn.microsoft.com/Forums/vstudio/en-US/d44322f6-9850-4c3f-8696-921d3bc9db85/could-not-load-file-or-assembly-microsoftvisualstudioqualitytoolsunittestframework?forum=vsunittest
這是完整的源代碼:
https://github.com/john1726/WcfEndToEnd.git
有沒有人有什么建議?
uj5u.com熱心網友回復:
微軟似乎為他們的單元測驗框架更改了一些程式集/命名空間,并且以某種方式破壞了某些東西,或者可能存在問題,ReSharper所以我最終堅持使用NUnit.
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/417828.html
標籤:
