Visual Studio 2010中:如何实施的一个解决方案项目生成顺序? [英] Visual Studio 2010: How to enforce build order of projects in a solution?
问题描述
我在Visual Studio 2008中这个没有问题,但似乎VS 2010是有一个问题,我敢打赌它可能是我。
I had no problem with this in Visual Studio 2008 but it seems that VS 2010 is having an issue, and I'm betting it's probably me.
我有一个ASP.NET网站项目的解决方案和一些C#项目(在NUnit的BLL,DAL,测试)。我已经配置构建过程的测试项目自动运行NUnit的运行测试。我想,以确保测试项目之前的BLL和DAL项目建设,使测试将针对运行最新编译版本(是的,我知道我可以做到这一切在一个项目中,但我选择不 - 请与我:)承担)
I have a solution with an ASP.NET Web Site Project and a few C# projects (BLL, DAL, Tests in NUnit). I have configured the build process for the test project to automatically run NUnit to run the tests. I would like to ensure that the BLL and DAL projects build before the test project so that the tests will run against the latest compiled version (yes, I know I could do this all in one project, but I'm choosing not to -- please bear with me :) )
所以,我设置的测试项目的依赖,以包括BLL,DAL和Web应用程序项目,生成顺序显示BLL,DAL,Web应用程序,然后测试。然而,我注意到,当我建立的测试项目中的BLL实际上并没有建立。
So, I set the dependencies of the Test project to include the BLL, DAL, and Web Application projects, and the build order shows BLL, DAL, Web Application, and then Tests. However, I noticed that the BLL doesn't actually build when I build the Test project.
任何想法,这可能是或我可能会丢失,迫使其他项目的任何选项构建时,我构建测试项目?
Any idea what this could be or any option I might be missing to force the other projects to build when I build the Test project?
在此先感谢您的帮助!
推荐答案
尼克Craver提到检查配置管理器,以确保您选择搭建一个给定的配置项目。
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.
这篇关于Visual Studio 2010中:如何实施的一个解决方案项目生成顺序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!