简体   繁体   English

如何在Visual Studio 2010中自动化构建过程

[英]How to automate build process in Visual Studio 2010

I have a Visual Studio solution that contains several projects grouped within multiple "virtual" folders. 我有一个Visual Studio解决方案,其中包含几个项目,这些项目分组在多个“虚拟”文件夹中。 Due to the way the solution is organized, I need to build the projects in a specific order for the project to work correctly. 由于解决方案的组织方式,我需要按特定顺序构建项目以使项目正常工作。 Right now I need to right-click on the projects in a particular order to do this. 现在,我需要以特定顺序右键单击项目以执行此操作。

Is there a way I can either make a batch file or (even better) a plug-in that I can add to the toolbar that would do this for me automatically? 有没有一种方法可以使我生成批处理文件,或者可以(甚至更好)创建一个可以添加到工具栏中的插件,该插件可以自动为我执行此操作?

This functionality is built in to Visual Studio via project dependencies. 此功能通过项目依赖关系内置到Visual Studio中。 Essentially you define which projects depend on others and then VS will automatically build them in the correct order. 本质上,您可以定义哪些项目依赖于其他项目,然后VS将按照正确的顺序自动构建它们。

See http://msdn.microsoft.com/en-us/library/vstudio/et61xzb3(v=vs.100).aspx for details. 有关详细信息,请参见http://msdn.microsoft.com/zh-cn/library/vstudio/et61xzb3(v=vs.100).aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM