Reputation: 4936
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
Reputation: 28425
Yes, you can easily do that. Just follow these steps:
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).bin/output
folder.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