Azure Website Continuous Deployment always picks u

2019-03-29 23:13发布

I have the following folder structure in my TFS online:

enter image description here

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: enter image description here

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:

enter image description here

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条回答
家丑人穷心不美
2楼-- · 2019-03-29 23:52

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.

查看更多
登录 后发表回答