Solving “The current .NET SDK does not support targeting .NET 6.0.” in an Azure DevOps Pipeline

I recently upgraded a project to .NET 6 and immediately started getting an error on your hosted build pipeline in Azure DevOps. Error NETSDK1045: The current .NET SDK does not support targeting .NET 6.0. Either target .NET 5.0 or lower, or use a version of the .NET SDK that supports .NET 6.0. The solution I […]