Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Winforms/WPF .NET9.0 app cannot be ran on Windows 10 20H2(OS build 19042.2965) #43115

Open
Olina-Zhang opened this issue Aug 30, 2024 · 7 comments
Assignees
Labels
Area-NetSDK untriaged Request triage from a team member

Comments

@Olina-Zhang
Copy link
Member

Olina-Zhang commented Aug 30, 2024

Describe the bug

Winforms/WPF .NET9.0 app cannot be ran on Windows 10 20H2(OS build 19042.2965) and Windows 10 21H1, but .NET 8.0 apps work well

To Reproduce

  1. Install the latest .NET 9.0 RC2 SDK build from: https://github.com/dotnet/sdk/blob/main/documentation/package-table.md

  2. Create a Winforms application by CLI
    image

  3. Build and run created Winforms application by CLI

Actual result: dotnet build successfully, but dotnet run failed with nonsense characters output, Winforms runtime doesn't display
image

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-NetSDK untriaged Request triage from a team member labels Aug 30, 2024
@KalleOlaviNiemitalo
Copy link

https://learn.microsoft.com/en-us/lifecycle/products/windows-10-enterprise-and-education shows support for Windows 10 Enterprise version 20H2 ended on May 9, 2023.

https://learn.microsoft.com/en-us/dotnet/core/install/windows#supported-versions says .NET is not supported on end-of-life versions of Windows.

@Tanya-Solyanik
Copy link
Member

@Olina-Zhang - are you sure this is specific to Windows 10 20H2(OS build 19042.2965)? Otherwise it looks like a dupe of dotnet/msbuild#10579

@KalleOlaviNiemitalo
Copy link

The screen shot shows a "Faulting application" error in the Application event log. dotnet/msbuild#10579 would not cause that.

@Olina-Zhang
Copy link
Member Author

@Tanya-Solyanik Today I verified more Windows versions, It also reproes in Windows 10 21H1, but not Windows 10 21H2 and above. This issue is about created Winforms/WPF apps cannot be ran.

@baronfel
Copy link
Member

@merriemcgaw are there any known issues with Windows 10 21H1?

@merriemcgaw
Copy link
Member

With Win10 21H1 in general or with WinForms? I think this issue is the one report I've seen for WinForms.
@Olina-Zhang has your team encountered any other issues? Does the .NET version you try make a difference here?

@Olina-Zhang
Copy link
Member Author

@merriemcgaw this issue is about Winforms/WPF app failed to use CLI dotnet run for created .NET 9.0 apps on only Windows 10 20H2 and 21H1, we cannot see runtime form displayed, but for .NET 8 works well. Now we cannot find OS image in Azure portal to create these machines to verify the incoming .NET 9.0 GA build, because these 2 OSes are out of support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-NetSDK untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

5 participants