Visual Studio 2008中不必要的项目建设 [英] Visual Studio 2008 Unnecessary Project Building

查看:220
本文介绍了Visual Studio 2008中不必要的项目建设的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个C#项目,该项目包括一个exe文件和11个库文件。 exe文件引用的所有库,并LIB1可以引用LIB2,lib3,lib4等。

I have a C# project which includes one exe and 11 library files. The exe references all the libraries, and lib1 may reference lib2, lib3, lib4, etc.

如果我进行了更改LIB1中的一类和内置的解决方案,我认为只有LIB1和EXE将需要改变。但是,如果我要运行解决方案的所有的DLL和EXE文件正在兴建。

If I make a change to a class in lib1 and built the solution, I assumed that only lib1 and the exe would need to be changed. However, all dll's and the exe are being built if I want to run the solution.

有没有一种方法,我可以从他们是否没有改变正在兴建停止依赖?

Is there a way that I can stop the dependencies from being built if they have not been changed?

推荐答案

是关键的这句话? 但是,所有的DLL和EXE文件正在兴建的如果我想运行的解决方案

Is the key this phrase? "However, all dll's and the exe are being built if I want to run the solution"

Visual Studio将始终尝试构建所有的当您运行一个单一的项目,即使该项目不依赖于一切。这种选择可以改变但是,。转到工具|选项|项目和解决方案|生成和运行,并勾选只有建立在运行启动项目和依赖。然后,当你按下F5,VS只能建立自己的启动项目,它依赖于动态链接库。

Visual Studio will always try to build everything when you run a single project, even if that project doesn't depend on everything. This choice can be changed, however. Go to Tools|Options|Projects and Solutions|Build and Run and check the box "Only build startup projects and dependencies on Run". Then when you hit F5, VS will only build your startup project and the DLLs it depends on.

这篇关于Visual Studio 2008中不必要的项目建设的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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