c# - 更改代码 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.
我的设置:
- Visual Studio 社区 2019 v16.0.2
- .NET v4.0.30319
解决方案
如果您正在使用 ASP.NET,请尝试删除optimizeCompilations="true"
web.config 文件中的属性。还要确保您安装了最新的 VS 更新。
推荐阅读
- xml - 如何限制通过 DTD 放入元素中的字符数?
- redis - 为什么 haproxy 显示 2 个 redis 节点关闭,即使这些节点是连接到 redis 主节点的 redis 从节点?
- flutter - 使用 File Picker 在 Flutter 中将 PlatformFile 制作成 File
- google-sheets - 嵌套在数组中的动态查询公式
- r - 如何加快我的 Rcpp 代码,它只执行简单的操作?
- flutter - 如何使此代码在颤动中响应
- c++ - C++接受函数作为模板并返回函数返回类型的向量
- r - 为股票建立逻辑回归模型
- javascript - 如何默默地结束一个糟糕的请求
- angular - Angular项目中的延迟加载设置