leo*_*n22 7 c# locked-files visual-studio visual-studio-2019
我在 Visual Studio 中有一个奇怪的问题:
如果在调试过程中抛出未处理的异常,我将无法构建我的 C# 应用程序:
Unable to copy file "C:\Projects\A\bin\A.dll" to "..\..\bin\A.dll".
The process cannot access the file '..\..\bin\A.dll' because it is being used
by another process.
Could not copy "C:\Projects\A\bin\A.dll" to "..\..\bin\A.dll".
Exceeded retry count of 10. Failed.
The file is locked by: "Microsoft Visual Studio 2019 (14904)"
Run Code Online (Sandbox Code Playgroud)
是否有永久解决方案来解决这个奇怪的错误?(我目前唯一的解决方法是重新启动 Visual Studio)
我尝试过但对我不起作用的方法:
在我的所有项目中插入预构建事件脚本也是不切实际的!链接:https : //blog.ndepend.com/visual-studio-script-saves-time-pain/
有没有人有解决这个问题的方法?
| 归档时间: |
|
| 查看次数: |
11504 次 |
| 最近记录: |