If I create a new project (or open old working project) with the target framework .NET Core 3.1 or .NET 5.0 or any newer versions using VS2019 or VS2022, and I try running or building the project, I get the following errors:
I tried to install everything, but The SDKs aren't found in the "C:\Program Files (x86)\dotnet\sdk" folder.
Screenshot of what I installed (as an example VS20122)
Screenshot of the list of the "target framework" in the project properties
Screenshot of what I installed (as an example VS20122)2
Screenshot of what I installed (as an example VS20122)3
PS : With .NET Framework I don't have that problem.