你想继续并运行最后一次成功的构建? [英] Would you like to continue and run the last successful build?

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

问题描述


您正在Visual Studio中,您按F5(运行),并在此对话框中打开:

错误。您是否希望继续并运行最后一次成功的构建?


精彩。



我确定有些情况下运行最后一次成功的构建是有用的,但是,我有这个问题的 永远不会 回答是。哦,当然,我点击了很多次,沮丧地等待着第一次机会撤消我的错误,但没有任何其他的。



所以,你有没有发现这个功能有用吗?如果是这样,在什么情况下,您可以有效地运行最后一次成功的应用程序?



您多久不小心单击是并踢在等待应用程序开始的时候自己?

解决方案

在VS2008中有以下选项可以设置为更改行为确定如果Visual Studio的其他版本中有类似的选项):

 项目和解决方案/构建和运行

- 运行时,项目已过期:

始终构建
从不生成
提示构建< ==默认设置

- 运行时,出现构建或部署错误时:

启动旧版本
不启动
提示启动< ==默认设置

将上述选项设置为始终构建和不启动,并获得我认为更多的内容葡萄牙的行为。虽然有时候,当我尝试启动调试器,并且有一个构建错误,需要几秒钟,以了解为什么我没有得到断点,我以为我会打(可能会很高兴得到一些烤面包机'的消息类型将我从我的昏迷中剔除)。


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?

Wonderful.

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?

解决方案

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天全站免登陆