VS2012 在一个解决方案中发布多个项目 [英] VS2012 publish multiple projects in a solution

查看:62
本文介绍了VS2012 在一个解决方案中发布多个项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们使用的是 VS2012.我们有一个包含多个 Web 项目的解决方案,并且正在使用发布来部署项目.解决方案中已经有相当多的项目.一次发布所有这些是非常耗时的.有没有办法一次性发布所有项目?

We are using VS2012. We have a solution with mulitple web projects and are using publish to deploy a project. There are already quite a few projects in the solution. To publish all of them at once it is pretty time consuming. Is there a way to publish all the projects at once?

推荐答案

我发现我可以在命令行中使用 msbuild 来发布多个项目.

I found out I can use msbuild at the command line to publish multiple projects.

msbuild example.sln /p:Configuration=Test;DeployOnBuild=true;PublishProfile=Test.example.pubxml /MaxCpuCount:8

这篇关于VS2012 在一个解决方案中发布多个项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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