在Visual Studio 2008中构建依赖项 [英] Build Dependencies in Visual Studio 2008

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

问题描述





有没有一种简单的方法可以找出为什么visual studio想要重建我的可执行文件,即哪些源文件已更改为需要重建?我想知道没有实际重新生成可执行文件(并更改其构建日期)。



谢谢

解决方案

< blockquote>这一切都是通过MSBuild技术自动完成的。系统使用依赖项和时间戳,因此增量构建永远不允许重建任何不需要重建的东西。您可以学习如何编写自定义项目文件和定义依赖项,但您只需要它来创建自定义构建步骤(使用MSBuild API称为任务,编程为.NET程序集),集成第三方编译器或其他构建实用程序,以及其他目的。



请参阅:

http://msdn.microsoft.com/en-us/library/0k6kkbsd.aspx [ ^ ],

http://msdn.microsoft.com/en-us/library/vstudio/ms164311.aspx [ ^ ],

http://msdn.microsoft.com/en-us/library/ms171466.aspx [ ^ ]。



请看看我过去的答案:

如何在VB Web应用程序中使用cs类 [ ^ ],

创建C#项目时使用的obj文件夹是什么? [ ^ ]。



-SA

Hi,

Is there an easy way to find out why visual studio wants to rebuild my executable i.e. what source files have changed to require a rebuild? I would like to know without actually regenerating the executable (and changing its build date).

Thanks

解决方案

This is all done automatically, through MSBuild technology. The system uses both dependencies and time stamps, so incremental build never allows to rebuild anything which does not need rebuild. You can learn how to write custom project files and define dependencies, but you would only need it to create custom build steps (so called "Tasks" using MSBuild APIs, which are programmed as .NET assemblies), integrate third-party compilers or other build utilities, and for other advances purposes.

Please see:
http://msdn.microsoft.com/en-us/library/0k6kkbsd.aspx[^],
http://msdn.microsoft.com/en-us/library/vstudio/ms164311.aspx[^],
http://msdn.microsoft.com/en-us/library/ms171466.aspx[^].

Please see my past answers:
How to use cs class in a VB web application[^],
What is "obj" folder used for when I created a C# project?[^].

—SA


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

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