alek kowalczyk
alek kowalczyk

Reputation: 4936

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 independently or on the web application. There are resources how to do it in .NET 4.6, but how can I deploy an ASP.NET 5 Console Application? Is there a way to do it like: https://azure.microsoft.com/pl-pl/documentation/articles/websites-dotnet-deploy-webjobs/

Upvotes: 3

Views: 1567

Answers (1)

Victor Hurdugaci
Victor Hurdugaci

Reputation: 28425

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

  1. Create the console app
  2. Pack it with the runtime by running dnu publish --runtime <name of runtime> (you might to pass --no-source too if don't care about having the source code as part of the job).
  3. Zip everything in the bin/output folder.
  4. Upload the zip as a webjob through the Azure Portal.

Caveat: If you want to use CoreCLR, the WebJobs SDK is not available. Nor is the Storage SDK.

PS: There is no tooling support in VS, yet, for the steps above.

Upvotes: 7

Related Questions