Getting Exception after clone repository in VS 2022 #2756
-
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. |
Beta Was this translation helpful? Give feedback.
Answered by
Keboo
Jul 1, 2022
Replies: 1 comment 7 replies
-
The error typically occurs when you only have the .NET 5 SDK installed. |
Beta Was this translation helpful? Give feedback.
7 replies
Answer selected by
Keboo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The error typically occurs when you only have the .NET 5 SDK installed.
If you run the command
dotnet --list-sdks
on the command line, you should see the versions of the SDK that you have installed. If you do not have a 6.0.300 or newer, I recommend downloading the latest 6.0 version of the SDK from: https://dotnet.microsoft.com/download