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!|

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,187 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,436 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
939 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Jiale Xue - MSFT 18,736 Reputation points Microsoft Vendor
    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 Answers by the question author, which helps users to know the answer solved the author's problem.