Publish Multiple Projects to Different Locations on Azure Website

China☆狼群 提交于 2019-11-26 05:27:19

问题


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:


  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



来源:https://stackoverflow.com/questions/21341616/publish-multiple-projects-to-different-locations-on-azure-website

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!