I spent 2 hours trying to figure out what's wrong with my pipeline for Azure Functions .NET6 (on Windows).
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.