Visual Studio Designer view being automatically closed

DcraftBg 1 Reputation point
2022-05-21T08:43:49.18+00:00

So i am running Visual Studio 2019 and I am setting up a Windows Forms Project. I click on create and it creates my project. My problem comes when I try to open up the designer view of the default Form1. When i hit "View Designer" it just brings up the code for the "designer" and not the actual designer itself. Do I have to download a certain extension with .net or is it because im using an older version of Visual Studio. It could also be because when I needed to create a project in Visual Studio it bringed up an error saying it didn't find the folder: .templateengine\dotnetcli\v6.0.201\packages. Thats why i checked if all of the folders did exist and the packages folder did not. Thats why i made one using mkdir packages inside of the directory. When i booted it up everything worked as normal. If you could help me in any way i would be greatly appreciative

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,828 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,606 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 27,271 Reputation points Microsoft Vendor
    2022-05-23T06:46:01.843+00:00

    Hi @DcraftBg ,

    Welcome to Microsoft Q&A forum.

    Which version of Visual Studio are you using? Have you tried to update and use the latest version(16.11.15) of VS 2019?

    Please also try following suggestions and let me know if it works.

    1. Right-click your WinForm project node in Solution Explorer > Unload Project > Right-click it again > Reload Project and then check if View Designer works.
    2. Open Visual Studio Installer > find Visual Studio 2019 > More > Repair.
    3. Create a new Windows Forms project and try to target other .NET/.NET Framework and check if it works.

    Besides, there should be no need to install a separate extension to show Designer view. And about the missing package folder, not sure, did you install .NET 6 separately?

    Best Regards,
    Tianyu

    • 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