dotnet / winforms

Windows Forms is a .NET UI framework for building Windows desktop applications.
MIT License
4.38k stars 971 forks source link

Error while running test application on winforms repo #11629

Closed MandiMan closed 2 months ago

MandiMan commented 3 months ago

.NET version

Latest winforms repo

Did it work in .NET Framework?

Not tested/verified

Did it work in any of the earlier releases of .NET Core or .NET 5+?

Yes, it cannot repro in last week .NET 9.0 E2E testing on winforms repo

Issue description

Clone winforms repo then use start-vs.cmd, cmd output Build succeded, but running WinformsControlsTest app has error

Actual result: Error while running WinformsControlsTest app image Expected result: Run WinformsControlsTest app successfully with no error

Steps to reproduce

  1. Clone winforms repo: https://github.com/dotnet/winforms.git
  2. Run WinformsControlsTest app
elachlan commented 3 months ago

@MandiMan are you using the preview version of visual studio?

MandiMan commented 3 months ago

@MandiMan are you using the preview version of visual studio?

Yes, I'm using 17.12.0 Preview 1.0 [35104.6.main].

merriemcgaw commented 2 months ago

@LeafShi1 can your team scan Roslyn and runtime repos related to something missing here and see if this is a known issue?

LeafShi1 commented 2 months ago

This problem occurred after updating dotnet sdk version from 9.0.100-preview.4.24267.66 to preview.5.24307.3 ( The regression PR #11535 ), so this issue should also related to the dotnet issue https://github.com/dotnet/sdk/issues/41652

Updating the SDK version to 9.0.100-preview.4.24267.66 or 9.0.100-preview.7.24358.14 will resolve this issue