I have a solution that has a mvc website (WebApplication1) that is dependent on another project in the solution (WebAppCore). The source is hosted in git on Visual Studio Online. I configured a Continuous Integration. Everything builds fine but when the deployment occurs, it deploys WebAppCore. As I understand it, that's the expected behavior since that's the first project in the solution. I want it to deploy WebApplication1.
My question appears to be identical to this one: Azure websites deploy specific web project
The solution to that question is to go to the azure website configure page and add an app setting of Project and give it the repo root relative path of the project I want deployed. In my case that was:
Project: WebApplication1\WebApplication1\WebApplication1.csproj
The setting doesn't seem to work. I've tried many other combinations of the path to the project and none seem to work.
Here are more details:
- Visual Studio 2013
- Visual Studio Online
- Hosted git Build Process
- Template is GitContinuousDeploymentTemplate.12.xaml
In the template Process settings:
- Build\Projects set to the solution
- Deployment\Windows Azure Deployment Environment is my azure website.
Troubleshooting 1 Since these are all test projects, when I remove WebAppCore, WebApplication1 is now the only project in the solution and that deploys fine.
Troubleshooting 2 Even though it's not the fix I want, I decided to attempt using a .deployment file as described here (although this article also mentions using a Project app setting): How can I use the TFS Online <--> Azure Website integration when there are two web apps in the solution
This did not work either