I believe this is because of the missing SDK. Can you install .Net 6 SDK from the below link and try.
https://dotnet.microsoft.com/en-us/download/visual-studio-sdks
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have vs2019 Professional v16.11.10 and vs2022 Professional v17.0.6 installed on my machine.
When trying to use vs2022, starting a new project or loading a project that works in 2019, no references are loading. When trying to view project settings I get the following error:
Could not resolve mscorlib for target framework '.NETCoreApp,Version=v6.0'. This can happen if the target framework is not installed or if the framework moniker is incorrectly formatted.
I have tried with .net 5 and 4.8, I have repaired. I have uninstalled and reinstalled.
vs2022 just doesn't want to work.
Need some help please.
I believe this is because of the missing SDK. Can you install .Net 6 SDK from the below link and try.
https://dotnet.microsoft.com/en-us/download/visual-studio-sdks
This seems not to be a SDK issue. For me this happens just in one project among several projects in one single solution.
the problem happened when I updated a Nuget package and it failed because of error in references in that specific project, then I cleaned solution and all system and non-system references on that project got yellow signs.
I tried whatever solution I saw online none of them worked, as the last resort I renamed old project, created new one and moved items to it.
Any idea of a better solution?