当有代码更改时,Visual Studio 2010 不会在运行之前构建 [英] Visual Studio 2010 isn't building before a run when there are code changes

查看:33
本文介绍了当有代码更改时,Visual Studio 2010 不会在运行之前构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

多年来我一直使用 F5(开始调试)来构建代码(如果它已经过时),然后进行调试.这也适用于 VS 2010,但是今天它只是在没有构建的情况下开始调试.假设我对项目进行了清理,然后按 F5 而不是构建它,以便它可以运行它会抛出一条错误消息,指出该 exe 不存在运行.我如何使它首先构建?什么可以改变?

I've been using using F5 (Start Debugging) for years to build the code (if its out of date), and then debug. This was working on VS 2010 also, however today it just start debugging without a build. Say I do a clean on the project, and then hit F5 instead of building it so it can run it throws an error message saying that the exe doesn't exist to run. How do I make it build first? What could have changed?

推荐答案

工具 + 选项、项目和解决方案、构建和运行.在运行时,当项目过时"= 始终构建.下面的那个 = 不要启动.

Tools + Options, Projects and Solutions, Build and Run. "On Run, when projects are out of date" = Always build. The one below that = Do not launch.

这篇关于当有代码更改时,Visual Studio 2010 不会在运行之前构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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