Visual Studio 2019 Version 16.7.1 NOT showing Code files for WinForms and UserControls

Michael E. Gernaey 1 Reputation point
2020-08-18T21:31:57.277+00:00

Issue:

After updating to 16.7.1 any project that has UserControls or WinForms, no longer shows the actual Code File in the UI. Which it did prior to this.

Example:

  1. Create project that is a WinForm projects
  2. Add a WinForm or UserControl
  3. It will show only the following
    18551-image.png
  4. To see the Code file, you have to Right Click the Primary File, and choose Show Code File, or select it and Click F7.
  5. On my machines where I have the previous version it still shows the file

I have tried everything to get it to show it back, but the only way is to select View and Folder View. Which I do NOT want because it also shows any files that have been excluded, in a weird like see through state.

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

2 answers

Sort by: Most helpful
  1. Daniel Zhang-MSFT 9,611 Reputation points
    2020-08-19T05:19:02.76+00:00

    Hi MichaelGernaeyHotmail,
    From the picture you provide, I viewed that you add your solution to source control.
    You can unbind source control for solution by following steps:

    1. Right click Tools / Options / Source Control / Plug-in Selection.
    2. In combo-box "Current source control plug-in", change to "None" and click OK.
    3. The project will close, just reopen it.
      18609-8191.png
      Best Regards,
      Daniel Zhang
    0 comments No comments

  2. Khắc Tân Dương Quang 1 Reputation point
    2022-11-08T04:41:52.22+00:00

    Not dig old topic, but leave it here for anyone got same trouble:
    Just remove or rename the folder ".vs" (is hidden) in your solution folder, then reopen your solution twice - first for VS rebuild database of your file, second for result OK.

    0 comments No comments