Background:
Today when you open a WinForm project, the icon appears as a class file instead of the form, in the code right-click the View Designer option, double-clicking the icon opens the code instead of the form design interface, Baidu did not find a solution.
Workaround (not necessarily generic):
1, compile the project to see if there are errors.
2. View the form files that the WinForm form inherits can be opened? Any questions?
3, check out the code, in UndoCheckout, compile, see if it can be
4, check whether the project has been checked out by other people, if checked out, let them check in, and then get the latest version of the code, compile, see if it is possible (I am in this step, done)
Imaginary:
Could it be that someone checked out, causing the file version to be different, the appearance of this situation? I don't know
The class icons are as follows:
The form icons are as follows: