Visual Studio 2010: How to enforce build order of projects in a solution?

人盡茶涼 提交于 2019-11-27 03:54:54

Nick Craver mentioned checking the Configuration Manager to ensure you have the project selected to build for a given configuration.

However, to set the build order for multiple projects in a solution right click the solution and choose "Project Build Order..." from the context menu.

I'll expound upon my comment a bit here, for those having a similar issue.

Open up the configuration manager by right clicking on the solution and choosing Configuration Manager, then make sure build is checked for the appropriate project (for your current configuration) in the right-hand column here:

Vyktor

Maybe instead of setting order manually you could use Project Dependencies which allows you to specify build order indirectly.

  1. In Solution Explorer, select a project.
  2. On the Project menu, choose Project Dependencies. The Project Dependencies dialog box opens. The Project Dependencies option is only available in a solution with more than one project.
  3. On the Dependencies tab, select a project from the Project drop-down menu.
  4. In the Depends on field, select the check box of any other project that must build before this project does.

To correct the issue happening in my VS2012, I did the following:

Right click Project Properties --> Common Properties --> Framework and References

Now you will find some projects shown on the Dependence Tab are missing in the "References" list.

Click "Add New Reference" to add the missing the projects.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!