发布多个项目在Azure网站不同位置 [英] Publish Multiple Projects to Different Locations on Azure Website

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

问题描述

随意推荐一个更好的标题或更改我的解释如下!

我使用的Windows Azure网站(首次),并将它连接到在Visual Studio在线(也是我的第一次)的解决方案。我还能够连接到Visual Studio联机,创建一个项目,扔了连接到一个母版页和我的Azure网站更新本身就是一个母版页和Web表单。太棒了!

我的问题

如果我添加其他项目的解决方案似乎这个新项目将覆盖第一个文件。我想不出该如何设置了这样:

项目1 - >部署到wwwroot文件(!默认情况下会发生很大)

2项目 - >部署到wwwroot文件/子/目录/(似乎不工作)

有人能解释一下如何配置项目2项,这样当溶液自动部署到Azure的一个网站,它进入到特定的位置?


解决方案

  1. 转至配置选项卡中的Azure门户网站。

  2. 所有的方式滚动至底部,然后添加任何你想要像下面Project2中,其中一个新的应用程序。

    基本上'Project2的'部分是根目录/和之后的URL网站\\ wwwroot的\\ Project2的'是实际文件夹应该在站点根目录下的生活


  3. 下载发布配置文件,并在Visual Studio中导入它,那么你的网站名称后添加应用程序名称如下图所示。还记得更新目标网址以及


希望帮助

Feel free to recommend a better title or changes to my explanation below!

I am using Windows Azure Websites (for the first time) and have connected it to a solution in Visual Studio Online (also my first time). I was also able to connect to Visual Studio Online, create a project, throw up a master page and web form connected to a master page and my Azure website updated itself. Great!

My Issue

If I add another project to the solution it seems that this new project overwrites the files in the first one. I can't figure out how to set this up so:

Project 1 -> deploy to wwwroot (happens by default great!)

Project 2 -> deploy to wwwroot/sub/directory/ (doesn't seem to work)

Could somebody explain how to configure project 2 so that when the solution auto deploys to an Azure Website that it goes to a specific location?

解决方案

  1. Go to the Configure tab for the site in Azure portal.
  2. Scroll all the way to the bottom then add a new application where ever you want like Project2 below.

    Basically the 'Project2' part is the URL after the root '/' and the 'site\wwwroot\Project2' is where the actual folder should live under the site root

  3. Download the publishing profile and import it in Visual Studio, then add the application name after your site name like below. Also remember to update the destination URL as well

hope that helps

这篇关于发布多个项目在Azure网站不同位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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