Azure WebJobs in ASP.NET 5

I have an ASP.NET 5 web application in Visual Studio 2015 RC. Now I want to create a WebJob, it can be independent or in a web app. There are resources on how to do this in .NET 4.6, but how can I deploy an ASP.NET 5 console application? Is there a way to do this like: https://azure.microsoft.com/pl-pl/documentation/articles/websites-dotnet-deploy-webjobs/

+3


source to share


1 answer


Yes, you can do it easily. Just follow these steps:

  • Creating a console application
  • Package it with the runtime by running dnu publish --runtime <name of runtime>

    (you can pass --no-source

    too if you don't want the source code to be part of the job).
  • Replace everything in the folder bin/output

    .
  • Upload the mailbox as a website through the Azure Portal.


Warning. If you want to use CoreCLR, the WebJobs SDK is not available. There is also no SDK for storage.

PS: There is no tool support in VS, but for the steps above.

+7


source







All Articles