Share via

Getting Could not resolve mscorlib for target framework '.NETFramework,Version=v4.8'. This can happen if the target framework is not installed or if the framework moniker is incorrectly formatted. When trying to "view designer" in Visual Studio for class.

Brandon Dickinson 0 Reputation points
2024-01-15T19:13:53.97+00:00

Hello, need help with this error |Could not resolve mscorlib for target framework '.NETFramework,Version=v4.8'.
This can happen if the target framework is not installed or if the framework
moniker is incorrectly formatted.|Could not resolve mscorlib for target framework '.NETFramework,Version=v4.8'.
This can happen if the target framework is not installed or if the framework
moniker is incorrectly formatted.| | -------- | -------- | |Don't know what i'm supposed to do to resolve this and be able to view designer. Thanks!|

Developer technologies | Visual Studio | Setup
Developer technologies | .NET | Other
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.

{count} votes

2 answers

Sort by: Most helpful
  1. Bart Hofland 10 Reputation points
    2026-02-09T10:56:56.85+00:00

    I had this same issue in my VB.NET WinForms project in Visual Studio 2026 recently.

    It worked again after I explicitly re-referenced the mscorlib assembly in the assembly references in my project.

    1 person found this answer helpful.
    0 comments No comments

  2. Anonymous
    2024-01-16T02:04:58.3833333+00:00

    Hi @Brandon Dickinson , Welcome to Microsoft Q&A,

    Assuming you are using Visual Studio,

    If this is your first time using Visual Studio, it is recommended that you check whether .Net Framework 4.8 in the installer is installed correctly.

    User's image

    Secondly, you can try to see if the path length in your working path is too long and try to use a shorter path.

    Finally you can also try clean project, then retargeted from 4.8 to 4.7.2 and back.

    Here is a similar question.

    Best Regards,

    Jiale


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

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.