在Visual Studio 2010项目构建顺序? [英] Project Build Order in Visual Studio 2010?

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

问题描述

我们拥有一个具有以某种方式相互引用超过120个项目的Visual Studio 2010的解决方案。所有项目间的引用是项目引用而不是文件,它可以帮助Visual Studio中确定项目的构建顺序自动地引用。
满分120,我们有没有interdependant对方而这些项目被引用的其他广泛的几个核心项目。因此,这些项目都是在项目构建顺序的顶部。这些核心项目有从.NET框架中,企业图书馆(其中有些人有这样一个压缩工具的第三方dll文件的引用)。

We have a Visual Studio 2010 solution that has over 120 projects that reference each other in some way. All inter-project references are project references and not file references which helps Visual Studio determine the project build order automagically. Out of 120, we have a few core projects that are not interdependant on each other and these projects are referenced by the rest extensively. Hence these projects are at the top of the project build order. These core projects have references from the .NET framework, Enterprise Library (and some of them have third party dll file references like a zip utility).

我想不通为什么这些核心项目以特定的方式是有序的。
该算法为项目生成顺序对于非interdependant的项目是什么?

I cannot figure out why these core projects are ordered in a specific way. What is the algorithm for the project build order for non-interdependant projects?

PS:我明白我可以使用项目依赖的依赖性选项卡创建一个假的依赖关系影响这个顺序

PS: I do understand I can influence this order by creating a fake dependancy using the Dependencies tab of Project Dependencies.

推荐答案

我相信,Visual Studio中建立在他们出现在溶液中的顺序执行这些项目。如果您需要调整您可以使用项目依赖项目生成顺序(不使用.NET参考混淆)。当你从一个.NET项目中添加.NET引用到另一个里面你Visual Studio解决方案在Visual Studio自动创建项目的依赖。手动修改项目依赖做到以下几点:

I believe that Visual Studio builds these projects in the order they appears in solution. If you need to adjust the build order of projects you can use Project Dependencies (do not confuse with .NET References). When you add .NET reference from one .NET project to another inside you Visual Studio solution the Visual Studio automatically creates project dependency. To modify project dependencies manually do the following:


  1. 在Solution Explorer中的解决方案,单击鼠标右键。

  2. 选择项目依赖

  3. 从要依赖添加到下拉列表中选择项目。

  4. 这个项目
  5. 选择依赖关系。

您也可以通过切换到标签构建顺序查看生成的构建顺序。

Also you can view the resulting build order by switching to the tab Build Order.

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

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