您想继续并运行上次成功的构建吗? [英] Would you like to continue and run the last successful build?

查看:16
本文介绍了您想继续并运行上次成功的构建吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您在 Visual Studio 中...您按 F5(运行)并看到此对话框:

You're in Visual Studio... you press F5 (Run) and are greeted by this dialog:

存在构建错误.您想继续并运行上次成功的构建吗?

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

太棒了.

我确信在某些情况下运行最后一个成功的构建是有用的,但是,我从来没有有目的地对这个问题回答是".哦,当然,我已经多次单击是",并沮丧地等待第一次有机会纠正我的错误,但仅此而已.

I'm sure there are cases where running the last successful build is useful, however, I have never purposefully answered yes to this question. Oh sure, I've clicked Yes plenty of times, and waiting in frustration for the first opportunity to undo my blunder, but nothing more.

那么,你有没有发现这个功能很有用?如果是这样,在什么情况下能够运行最后一次成功构建的应用程序对您有帮助?

So, have you ever found this feature useful? And if so, under what circumstances did it become helpful for you to be able to run the last successful build of your application?

您是否经常在等待应用程序启动时不小心点击是"并踢自己?

How often do you accidentally click Yes and kick yourself while waiting for the app to start?

推荐答案

在 VS2008 中,您可以设置以下选项来更改行为(不确定其他版本的 Visual Studio 中是否有类似选项):

In VS2008 there are the following options you can set to change the behavior (not sure if there are similar options in other versions of Visual Studio):

Projects and Solutions/Build and Run

    - On Run, when projects are out of date:

          Always build
          Never build
          Prompt to build <== default setting

    - On Run, when build or deployment errors occur:

          Launch old version
          Do not launch
          Prompt to launch <== default setting

将上述选项设置为始终构建"和不启动",您会得到我认为更糟糕的行为.虽然有时当我尝试启动调试器并且出现构建错误时,我需要几秒钟才能意识到为什么我没有到达我认为我会击中的断点(获得某种烤面包机"可能会很好)' 一种让我从昏迷中清醒过来的信息.

Set the above options to "Always build" and "Do not launch" and you get what I consider a more ueseful behavior. Though sometimes when I try to launch the debugger and there's a build error it takes me a few seconds to realize why I'm not getting to the breakpoint I thought I'd be hitting (it might be nice to get some sort of 'toaster' type of message to knock me out of my stupor).

这篇关于您想继续并运行上次成功的构建吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆