gpt4 book ai didi

c# - 无法使用 Visual Studio 2017 加载文件或程序集 'Microsoft.CodeAnalysis.LiveUnitTesting.Runtime, version= 1.7.0.0'

转载 作者:太空宇宙 更新时间:2023-11-03 18:53:56 25 4
gpt4 key购买 nike

我开始使用 visual studio 2017 (15.7.1) 进行实时单元测试。在我切换分支并启动项目后,出现一条错误消息,内容如下:

Could not load file or assembly 'Microsoft.CodeAnalysis.LiveUnitTesting.Runtime, version= 1.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependenc

enter image description here

我尝试过:
- 重建/重启项目
- 停止实时单元测试
但它没有用。

我不知道为什么要从项目/bin 加载“Microsoft.CodeAnalysis.LiveUnitTesting.Runtime”。
有人有建议吗?

最佳答案

最后,我停止了实时单元测试并删除了持久化数据。现在可以使用了。

第 1 步。停止单元测试 enter image description here

第 2 步。测试 → 实时测试 → 选项... enter image description here

第 3 步。删除持久化数据 enter image description here

第四步,删除package文件夹下的所有文件夹,然后重新构建Solution,就可以了。

嗯...我仍然不知道为什么在更改分支后从项目/bin 加载 :S。

关于c# - 无法使用 Visual Studio 2017 加载文件或程序集 'Microsoft.CodeAnalysis.LiveUnitTesting.Runtime, version= 1.7.0.0',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50278930/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com