migrating from .NET core 2.1 to 2.2
The migration from .NET core 2.1 to 2.2 went smooth. Locally, after installing the new SDK (https://dotnet.microsoft.com/download/dotnet-core/2.2) and following the short guide presented here https://docs.microsoft.com/en-us/aspnet/core/migration/21-to-22?view=aspnetcore-2.2&tabs=visual-studio, i rebuild my project, and saw that everything worked as before.
So, I committed the changes, and watched my Azure Devops pick up the migration and start the build... But instead of a great success, i was offered a "Build failed" notification.
I looked into the error and saw the following error:
Now, seeing that the first step locally was to install the SDK, the way to solve this is pretty obvious. One could argue that the VSHost 2017 that does the builds, should instantly support the latest version of the SDK, but it does not (all the time). However, one could install the .NET core version itself in the build steps.
This is mentioned in stackoverflow here, and by doing just that, after saving the new buid pipeline, it worked as desired.
Keep an eye on the VSHOST 2017 to see if they updated the VSHOST machines to do have the SDK already there, because it saves time to not have to install it in an explicit step.