Version Used:
VS IntPreview build: 16.7.0 Preview 4.0 [30224.187.master]
Steps to Reproduce:
WinForms .NET Core project.Form1.cs opens up in code editor rather than designerForm1.cs icon to change to that of a designerExpected Behavior:
Form1.cs should get recognized as a designer file quickly after a new WinForms .NET Core project gets created.
Actual Behavior:
It takes a lot of time for Form1.cs to get recognized as a WinForms designer file. Sometimes it does not get recognized at all. During this time the user is completely blocked as there is no way to open the designer.
I don't repro this on Version 16.7.0 Preview 3.0. We correctly report the designer attribute after a reasonable time. On my machine that's about 15 seconds after project creation. This happens due to us waiting for other work to settle down and for us to enter into our background processing mode.
The problem is in not working mechanics of discovery forms if thy are not in *.csproj.user or the file is absent.
Issue with new project is related to https://github.com/dotnet/winforms/issues/3510
But without *.csproj.user (new project, pull from repo etc...) or if form is absent in it, things are completely broken: https://github.com/dotnet/winforms/issues/3619#issuecomment-663476629.
Yeah, this is taking several minutes for some larger projects after git clean, and other projects never get the icon at all (after leaving it for hours). It doesn't seem consistent. Some projects have issues only half the time after a git clean.
We believe this should be fixed for 16.8 with these two PRs:
https://github.com/dotnet/roslyn/pull/46391
https://github.com/dotnet/roslyn/pull/46426