首页 > 解决方案 > 更改代码 Visual Studio 2019 后编译错误

问题描述

我的问题是,如果每次更改代码时都调试代码,则会出现编译错误。每当我重新启动服务器时,一切都会再次运行。

(0,0): error : Cannot create file: C:\Users\alex\AppData\Local\Temp\Temporary ASP.NET Files\vs\a9393033\9993fb91\App_Code.pdb. 
The process cannot access the file because it is used by another process.

我的设置:

标签: c#.netvisual-studio

解决方案


如果您正在使用 ASP.NET,请尝试删除optimizeCompilations="true"web.config 文件中的属性。还要确保您安装了最新的 VS 更新。


推荐阅读