How do you deploy an Azure WebJob and App to the same App Service via VSTS?

后端 未结 2 591
暗喜
暗喜 2021-01-12 07:01

I have a Visual Studio 2017 solution with both an ASP.NET Web Application project (called UI) and an Azure WebJob project (called WebJobs). I have configured both to deploy

2条回答
  •  离开以前
    2021-01-12 07:31

    All you have to do is create the WebJob project by right clicking on your Web App and choosing:

    Add / New Azure WebJob project
    

    Or if you already have a WebJobs project in the solution:

    Add / Existing WebJob project
    

    Once you do that, publishing the Web App automatically publishes the WebJob where it belongs. It all happens in a single zip file, and there is nothing special to do in VSTS. Do not try to publish the WebJob project individually once you do that.

提交回复
热议问题