Error Message ‘There were build errors. Would you like to continue and run the l

用户意外关闭了VisualStudio2019的错误构建提示,导致每次运行都是上次成功构建的结果。要解决这个问题,需进入Tools>Options>ProjectsandSolutions>BuildandRun,更改‘OnRun,whenbuildordeploymenterrorsoccur’选项,选择‘Prompttolaunch’,以便在有错误时能显示提示。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

我不小心将visual studio 2019的Error Message 'There were build errors. Would you like to continue and run the last successful build? 提醒对话框改成不在提醒了,每次程序运行都是上次成功运行的结果。很是无语,现

“There were build errors. Would you like to continue and run the last successful build?”

Most people click the “Do not show this dialog again” checkbox and then press “Yes”. As a result of this, instead of the current code, last build runs all time with no more dialog box and this is something the developers would never want.

So, how do we undo this change?

We will focus on the solution on Visual Studio 2017.

Tools > Options > Projects and Solutions > Build and Run

As the result of our selections, the form on Build and Run has these selections. The selection in the second dropdown “On Run, when build or deployment errors occur”, even if the code has the error during the run, project runs with the last successful build. That’s why it should be changed.

The “prompt to launch” option from the 3 options you see above will allow us to return to the desired behavior.

It has the selection of what we want.

Have error-free code!

在怎么改回来啊,求大神帮助。。。

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值