c# - "Edits were made which cannot be compiled"。在 vs2010 中选中零错误和启用并编辑并继续

标签 c# visual-studio-2010 debugging

我能够在 Debug模式下编辑我的代码,但随后弹出显示错误

Edits were made which cannot be compiled. Execution cannot continue until the compile errors are fixed

但错误列表为空,我已选中启用编辑并继续。

我使用的是 vs2010。

清理重启也没有解决问题。

最佳答案

当您的工作区损坏时,可能会出现此问题。只需关闭 Visual Studio,删除(或者最好先重命名).vs 文件夹,然后再次启动 Visual Studio。

它甚至可以在 VS2017 中发生。

关于c# - "Edits were made which cannot be compiled"。在 vs2010 中选中零错误和启用并编辑并继续,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36053323/

相关文章:

c++ - C/C++编译器可以报告结构成员偏移量吗

java - 如何调试 java 可执行文件的类路径命令行选项 (-cp)?

iphone - 无法启动 com.apple.debugserver?

c# - .NET Core 依赖注入(inject),解析泛型接口(interface)

c# - Windows 窗体中的控件不显示工具提示气球

visual-studio-2010 - Visual Studio 2010 中构建的输出路径

WPF 或 WinForms 适合临时程序员吗?

c# - 类型 'IUnityContainer' 在未引用的程序集中定义

c# - 从资源写入文件,其中资源可以是文本或图像

c# - 从 C# 中的接口(interface)继承 XML 注释