I have an existing webjob (.NET 4.6.1) that works fine and starts when a message comes into the queue. I am learning how to port some applications to .NET Core 1.0, and as part of this I have done some research.
It seems that at the moment .NET Core 1.0 only supports webjobs, which work on schedule and do not have special Webjob features, such as this example: https://blog.kloud.com.au/2016/06/08/azure- webjobs-with-dotnet-core-rc2 /
For the queue message to trigger the job, I need the functions of the Webjob packages. When I add any WebJobs Nuget packages (including beta), I get an error:
Package Microsoft.Azure.WebJobs.Core 2.0.0-beta2 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package Microsoft.Azure.WebJobs.Core 2.0.0-beta2 supports: net45 (.NETFramework,Version=v4.5)
One or more packages are incompatible with .NETCoreApp,Version=v1.0.
I applied the workaround for Azure Storage already as described in:
https://jeremiedevillard.wordpress.com/2016/09/27/use-the-azure-storage-library-in-netcore-application/
but apparently this does not solve the problem for the Webjob package.
I am aware of a workaround for deploying a non-.NET Core website next to a .NET Core website, as described here: How to deploy Azure WebJob with .NET. Core Web App via Git? but - although it works - I just want to know if I can port my webjob to .NET Core 1.
Does anyone know how to do this?
TIA, Jeroen
source
share