从Visual Studio团队服务Azure的持续部署多个项目 [英] Azure Continuous Deployment from Visual Studio Team Services with multiple projects

查看:266
本文介绍了从Visual Studio团队服务Azure的持续部署多个项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用Github上(或任何其他比Visual Studio团队服务),我可以使用下面的页面定制部署:的 https://github.com/projectkudu/kudu/wiki/Customizing-deployments

While using Github (or anything other than Visual Studio Team Services) I can use the following page to customize deployment: https://github.com/projectkudu/kudu/wiki/Customizing-deployments

我想定制我的部署,因为我现在有两个一个Web应用程序和Web API项目。我希望要部署的Web应用程序,因为默认情况下它部署在Web API项目。使用项目库杜的设置(.deployment文件甚至更好,在Azure本身的应用程序设置)的伟大工程,但不是当你从Visual Studio Team Services的部署。

I'd like to customize my deployment as I currently have both a web app and a web api project. I want the web app to be deployed, as default it deploys the web api project. Using project Kudu the settings (.deployment file or even better, the app settings on Azure itself) works great, but not when you deploy from Visual Studio Team Services.

我已经从项目库杜大卫Ebbo发言,他解释说,VS团队服务不使用捻可言,但可能MS构建。所以我的问题是,如何具体部署Web应用程序。

I've spoken with David Ebbo from Project Kudu, and he explained that VS Team Services doesn't use Kudu at all, but probably MS Build. So my question is, how to specifically deploy the web app.

我设法改变生成定义并指定Web应用程序的.csproj的项目,以建立。这工作。不过,我也想部署我网页API。

I managed to change the Build Definition and specify the web app .csproj as the Projects To Build. This works. However, I also want to deploy my web api.

与部署捻网络API项目是很容易,因为我可以创建一个单独的网站,连接到一些库(和解决方案),因此它部署了正确的.csproj指定项目的应用程序设置。我们应如何做到这一点的MS建立?当我改变生成定义,它会永远部署有规定的项目。

Deploying the web api project with Kudu is easy as I can create a separate website, connect to the some repository (and solution) and specify the Project App setting so that it deploys the correct .csproj. How should we do this for MS Build? When I change the Build Definition, it will always deploy the project specified in there.

推荐答案

刚看到#2另一个答案,看起来来解决这个问题:<一href=\"http://stackoverflow.com/questions/21341616/publish-multiple-projects-to-different-locations-on-azure-website\">Publish多个项目在Azure的网站不同位置

Just saw another answer on Stackoverflow that looks to solve this problem: Publish Multiple Projects to Different Locations on Azure Website

这篇关于从Visual Studio团队服务Azure的持续部署多个项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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