Webjobs version 3 has been out since around September so I want to upgrade from 2.3.0 to the latest version, currently 3.0.4.
The Microsoft.Azure.Webjobs.servicebus package is, however, blocking me from doing so. I tried looking at webjobs sdk samples but they had the exact same issue with the servicebus package blocking the upgrade.
Questions
At the time I'm writing this, the newest release version of Microsoft.Azure.WebJobs.ServiceBus is 2.3.0. Looking at the package on nuget.org and expanding the dependencies, I see this:
Microsoft.Azure.ServiceBus.EventProcessorHost (>= 2.2.10)
Microsoft.Azure.WebJobs (= 2.3.0)
Microsoft.Extensions.Logging.Abstractions (>= 1.1.1) Newtonsoft.Json
(>= 9.0.1) WindowsAzure.ServiceBus (>= 3.4.5)
Notice how the version number for the Microsoft.Azure.WebJobs dependency uses =
and not >=
like the other dependencies. Therefore, NuGet is being instructed to not allow different versions of the package.
There are some 3.0.0 beta packages you could try, which interestingly use >=
for the WebJobs dependency, so you can use the latest "release" version of WebJobs package while using the ServiceBus beta package. Or, if you can migrate from packages.config to PackageReference, NuGet may allow you to use "incompatible" versions of packages with a warning, but if the package author is telling you that their package only works with a specific version of a dependency, there's an increased risk that you'll get runtime failures if you use a different version.