【发布时间】:2018-12-17 18:21:05
【问题描述】:
我搜索了高低,找不到此异常的答案。 This question 是我搜索时出现的主要问题,但它并没有解决这个问题。
[7/8/2018 6:22:22 PM Informational] Executing test method 'CoreScraper.FlyerScraper.GetAllCurrentFlyers'
[7/8/2018 6:22:22 PM Error] System.InvalidOperationException: The following TestContainer was not found 'C:\Users\Username\Documents\Visual Studio 2017\Projects\ProductApp\CoreScraper\bin\Debug\netcoreapp2.0\CoreScraper.dll'
at Microsoft.VisualStudio.TestWindow.Controller.TestContainerProvider.<GetTestContainerAsync>d__61.MoveNext()
“CoreScraper”是项目的名称。当我查看...\netcoreapp2.0\ 文件夹时,CoreScraper.dll 肯定在其中。我通过右键单击测试方法并选择“运行测试”来运行测试。我第一次运行它时测试运行良好,但从那以后它就给了我这个错误。我已经关闭了Visual Studio并重新打开,删除了bin\的内容,清理并重建了项目等。
【问题讨论】:
标签: c# selenium-webdriver mstest asp.net-core-2.1