Azure Website Continuous Deployment always picks up the wrong project

浪子不回头ぞ 提交于 2019-12-05 00:49:18

问题


I have the following folder structure in my TFS online:

The folder names also match the project names in the solution.

Legend:

  • green dot: web api 2.0 project
  • red dot: class library
  • blue dot: console app added as a webjob to the web project
  • grey dot: console app only used for testing

Working folders for build definition:

The build definition was created automatically by connecting Azure to TFS online, and I have only changed the folder, so instead of the Team Project root folder, it points to the folder of this branch, containing the solution file and the folders in the first picture.

(This points to the folder which contains the solution files as well as all the subfolders from the first image.

Problem: When I run a build, it always picks up the ExpiringRateCardsWorker project (even now the Web project has been renamed (both the directory and the project file) to start with an underscore, so it will be first alphabetically.

The deployment is successful, this is what I see in Monaco:

How can I make it pick up the web project?

Edit: Question was closed stating to be the duplicate of this. I have since tried the solution suggested there, but the /site/deployments folder is empty on the FTP, it doesn't contain the deploy.cmd, so my question is still not answered unfortunatelly.


回答1:


I'm experiencing similar problem with deployment of MVC application to Azure using CD in VSO. This problem is somehow related to WebJob Publishing mechanism.

For now I wasn't able to deploy my whole solution with WebJob in one go, but when I've deleted all webjob *.json files and Microsoft WebJobs Publish NuGet package from my solution, I've managed to deploy my MVC App normally.

I think I'll have to deploy this parts of the application separately, for now.



来源:https://stackoverflow.com/questions/26891399/azure-website-continuous-deployment-always-picks-up-the-wrong-project

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