question

DcraftBg-2615 avatar image
0 Votes"
DcraftBg-2615 asked TianyuSun-MSFT answered

Visual Studio Designer view being automatically closed

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

vs-generalwindows-forms
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

TianyuSun-MSFT avatar image
0 Votes"
TianyuSun-MSFT answered

Hi @DcraftBg-2615 ,

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.