Visual studio solution explorer not showing form cs file

前端 未结 4 1074
悲哀的现实
悲哀的现实 2021-01-11 23:23

Cant find user code file of Windows form in solution explorer, now I must right click on form class and choose <>View Code. But there always been cs file at the

4条回答
  •  悲哀的现实
    2021-01-12 00:04

    I encountered the same issue, not displaying my Form. What you should do is:

    • /project_directory/project_name.csproj edit this file and make sure your_form_name.cs is like this:

    Notice: first delete all records from this file with existing your_form_name.cs and add the following:

    `
       Form
    
    
       your_form_name.cs
    
       
       your_form_name.cs
    `
    

    Open solution again and Form will be shown in your project once again.

提交回复
热议问题