我刚刚从.NET Core2.2升级到.Net Core3.0。
我有一个引用我的主项目的XUnitTest项目。
在重新构建时,我得到了以下错误:
Could not copy "obj\Debug\netcoreapp3.0\XXX.dll" to "bin\Debug\netcoreapp3.0\XXX.dll".
Exceeded retry count of 10. Failed. The file is locked by: ".NET Core Host (2016)"
Unable to copy file "obj\Debug\netcoreapp3.0\XXX.dll" to "bin\Debug\netcoreapp3.0\XXX.dll".
The process cannot access the file 'bin\Debug\netcoreapp3.0\Customer.Service.Tests.dll' because it is being used by another process. 我还尝试手动删除bin文件夹,重新启动VS 2019。唯一“有效”的方法是删除引用并重新启动计算机(win10)
为什么在.NET核心主机(2016)中打开该文件?
发布于 2019-09-27 20:01:56
问题是Swagger ( Swashbuckle.AspNetCore ) Swashbuckle.AspNetCore 4.0.1不支持.NET核心3.0版本5.0.0-rc3支持。
https://stackoverflow.com/questions/58127820
复制相似问题