I wanted to change the target framework from net.5.0 to net 6.0. So I manually changed the target framework on my csproj files and after that updated all my nugget packages. I have the .NET SDK 6.03 installed.
However I get the same error on every changed target framework:

Amit MohantyPosted Aug 5, 2022, 5:24 AM
What version of VS are you using?
.NET 6 is supported with Visual Studio 2022 and Visual Studio 2022 for Mac. It is not supported with Visual Studio 2019, Visual Studio for Mac 8, or MSBuild 16. If you want to use .NET 6, you will need to upgrade toVisual Studio 2022 (which is also now 64-bit).
Vishal YelvePosted Aug 5, 2022, 5:31 AM