Visual Studio 2022 assembly references missing

Richard Cumming 11 Reputation points
2022-02-09T13:08:53.227+00:00

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.

172633-image.png

Need some help please.

Developer technologies | Visual Studio | Other
Developer technologies | C#
{count} votes

2 answers

Sort by: Most helpful
  1. Sreeju Nair 12,666 Reputation points
    2022-02-10T05:49:41.667+00:00

    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

    1 person found this answer helpful.

  2. Reza Mortazavi 1 Reputation point
    2022-11-07T06:09:01.397+00:00

    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?


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.