Let's look at two pieces of code:
and:
For some reason, VS 2017 sees them differently:
And when I try to open the second file:
Sure, I can right click on the file and click on "View Code" but this behavior is weird.
Is it intended, or is it a bug?
Let's look at two pieces of code:
and:
For some reason, VS 2017 sees them differently:
And when I try to open the second file:
Sure, I can right click on the file and click on "View Code" but this behavior is weird.
Is it intended, or is it a bug?
I found an answer:
The class needs to get this attribute:
[System.ComponentModel.DesignerCategory("Code")]
I found this here: VS2010 opens my class-file (.cs) in the designer mode