Introduction
It's been a while since I've blogged on the site but I wanted to quickly post this out so others don't run into this frustration of getting their Azure Pipelines to succeed.
This post applies to you if you're using the following tech stack:
- Azure Pipeline (YAML)
- Your application targets either .NET Core/Standard and/or .NET Core/Standard/Framework.
- You use NuGet to restore packages.
Issue
You'll most likely come across errors that resemble the following:
- Project is not compatible with netcoreapp
- One or more projects are incompatible with .NETCoreApp
Resolution
Make sure that you add a step in the build process (just before performing NuGet restore step) to download either the latest version of NuGet or at least v4.3.0 to able to successfully restore packages.