asp.net-core - 为什么在 .NET Core 主机中打开文件?
问题描述
我刚刚从 .NET Core 2.2 升级到 .Net Core 3.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 Core Host(2016) 中打开?
解决方案
问题是 Swagger (Swashbuckle.AspNetCore) Swashbuckle.AspNetCore 4.0.1 不支持 .NET Core 3.0 版本 5.0.0-rc3 支持。
推荐阅读
- codeigniter - 使用 codeigniter 构建工作队列
- r - 在R中的列表中获取2个变量的平均值
- java - Java - WordUtils.capitalizeFully 有更好的替代品吗?使用字符串作为分隔符
- python - 缩短回答延迟时间
- amazon-web-services - AWS Lambda 函数将 X-Amz-Signature 附加到 S3 URL
- autolayout - Swift 编程 UI UIContextMenuInteraction 打开上下文菜单时自动布局错误(groupView)
- python - 根据自定义开始日期创建双周变量
- entity-framework-core - 为什么 Entity Framework Core 没有 Upsert (AddOrUpdate) 和 Synchronize(AddOrUpdateOrDelete) 命令?
- python - Python中的请求不向外部程序发送数据
- ansible - Ansible:如何使用从 FIND 模块中提取的文件?