Share via

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 | Visual Studio | Other

A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.

Developer technologies | C#
Developer technologies | C#

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.


2 answers

Sort by: Most helpful
  1. Sreeju Nair 12,761 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

    Was this answer helpful?

    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?

    Was this answer helpful?


Your answer

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