dotnet / sdk

Core functionality needed to create .NET Core projects, that is shared between Visual Studio and CLI
https://dot.net/core
MIT License
2.73k stars 1.07k forks source link

The latest .NET 9.0 SDK form designer cannot load #41250

Closed MelonWang1 closed 5 months ago

MelonWang1 commented 5 months ago

Describe the bug

The latest .NET 9.0 SDK Designer cannot load. In winforms project, it prompt "To run this application, you must install .NET Core". In WPF project, it prompt "The .NET Core 9.0 runtime for 'x64' platform configuration is missing or damaged". Winforms project: 2

WPF project: 1

To Reproduce

  1. Create a Winforms .NET Core 9.0 project.
  2. Observe the form designer.

Expected behavior The designer load successfully.

Actual behavior The designer cannot load.

.NET version: .NET SDK 9.0.100-preview.6.24279.8

Regression? It's a regression issue. Cannot repro on .NET 9.0.100-preview.6.24278.19 build.

MelonWang1 commented 5 months ago

Verified this issue in latest .NET 9.0 SDK build: 9.0.100-preview.6.24281.7, it is not repro. Form designer can load successfully. So close it. Screenshot 2024-06-03 012408

MelonWang1 commented 5 months ago

This issue still repro's in latest .NET 9.0 SDK build: 9.0.100-preview.6.24305.17. Reopen it.

MelonWang1 commented 5 months ago

Duplicate with 41395.