.NET Version

The current .NET SDK does not support targeting .NET 6.0

Your project does not compile due to an error about the current .NET SDK supporting .NET 6.

This error appears in the Error window.

Solution - Install and Open the Project in Visual Studio 2022

MonoGame 3.8.1 requires .NET 6.0. If you are using Visual Studio, then you must upgrade to Visual Studio 2022.

You can check your Visual Studio version in Visual Studio by clicking Help => About.

The screenshot above shows the window for Visual Studio 2019.

If you have multiple versions of Visual Studio installed, you can select which version of Visual Studio to use when opening a .sln file by right-clicking on the file and selecting to open with Visual Studio 2022.

Last updated