3
votes

I have a new ASP.NET 5 application (beta 8) and I have created a console application (the new Package version). I have followed this guide by Microsoft on publishing it to Azure Web Jobs. The guide is based on 2013 and do not use vNext, but it describes all the files, etc. that are required to publish the webjob. I have followed it and created:

  • webjob-publish-settings.json
  • added reference to Microsoft.Web.WebJobs.Publish
  • added webjobs-list.json (with reference to .xproj)

After I do publish my web application, no job appears (so I guess it just does not use the config properly). There is no context menu to Publish As WebJob either on the console application.

Is there any proper way to overcome it or we'll have to wait till full release of ASP.NET 5 to have it fixed and I have to create an ordinary console application meanwhile? I hope there is some workaround to publish it at least manually.

1
Try using the template instead. File->New->Template->Azure cloud service. Select Worker Role - devfric
There are no templates for that for ASP.NET 5 yet and it's a web job for app services, not a worker role and cloud service. - Ilya Chernomordik

1 Answers

3
votes

Currently, there is no support in VS to deploy DNX WebJobs. This will come later, but until then there are still ways to deploy manually.

Related reading: