NETSDK1182: Targeting .NET 6.0 or higher in Visual Studio 2019 is not supported
NETSDK1182 indicates that you're trying to open a .NET 6+ project in Visual Studio 2019. Or you might be trying to build from the command line using MSBuild from Visual Studio 2019. The full error message is similar to the following example:
Targeting .NET 6.0 or higher in Visual Studio 2019 is not supported.
To resolve this error switch to Visual Studio 2022, or change your project to target .NET 5 or earlier.
See also
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.