更新时间:2022-03-10 07:00:04
所有您需要做的就是通过右键单击Web App并选择以下选项来创建WebJob项目:
All you have to do is create the WebJob project by right clicking on your Web App and choosing:
Add / New Azure WebJob project
或者如果您在解决方案中已经有一个WebJobs项目:
Or if you already have a WebJobs project in the solution:
Add / Existing WebJob project
完成此操作后,发布Web应用程序将自动发布它所属的WebJob.所有这些都发生在单个zip文件中,并且在VSTS中没有什么特别的事情要做.完成该操作后,请勿尝试单独发布WebJob项目.
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.