简体   繁体   English

在 Visual Studio 中调试

[英]Debug in Visual Studio

When I try to run the debugger in Visual Studio 2022 with my C# program, it launches the unmodified version without my changes, even when I save them or exit then re-open Visual Studio.当我尝试使用我的 C# 程序在 Visual Studio 2022 中运行调试器时,即使我保存它们或退出然后重新打开 Visual Studio,它也会启动未经修改的版本而没有我的更改。 What can I do to fix this?我该怎么做才能解决这个问题?

Thanks谢谢

Build → Rebuild Solution构建 → 重建解决方案

Now go to the Error List tab to check what errors are preventing your solution from building现在 go 到 Error List 选项卡,检查哪些错误阻止您的解决方案构建

To prevent this in the future go to Tools → Options → Projects and Solutions → Build And Run and make sure the deployment error option is set to "Do not launch"为了防止将来出现这种情况 go 到工具→选项→项目和解决方案→构建并运行并确保部署错误选项设置为“不启动”

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM