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

.NET 6 Preview 3 latest build breaks WinForms/WPF apps #16512

Closed
jiangzeng01 opened this issue Mar 25, 2021 · 2 comments
Closed

.NET 6 Preview 3 latest build breaks WinForms/WPF apps #16512

jiangzeng01 opened this issue Mar 25, 2021 · 2 comments
Labels
untriaged Request triage from a team member

Comments

@jiangzeng01
Copy link

jiangzeng01 commented Mar 25, 2021

Repro steps:
Install latest build 6.0.100-preview.3.21174.8 from https://github.com/dotnet/installer

Error when running existing WinForms/WPF apps:
image

Impact:
117 WinForms/WPF apps failed in our AppCompat lab testing caused by this issue.
115 of these apps are real-world third party apps, this means the current latest Preview 3 SDK will break a lot of real-world existing WinForms/WPF apps.

SDK Build info:

.NET SDK (reflecting any global.json):
 Version:   6.0.100-preview.3.21174.8
 Commit:    82a95978c4

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.19042
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\6.0.100-preview.3.21174.8\

Host (useful for support):
  Version: 6.0.0-preview.3.21167.1
  Commit:  0f64b267ac

.NET SDKs installed:
  6.0.100-preview.3.21174.8 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 6.0.0-preview.3.21172.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 6.0.0-preview.3.21167.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 6.0.0-preview.3.21172.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Findings:
In file: "C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\6.0.0-preview.3.21172.2\Microsoft.WindowsDesktop.App.runtimeconfig.json"

{
  "runtimeOptions": {
    "tfm": "net6.0",
    "rollForward": "LatestPatch",
    "framework": {
      "name": "Microsoft.NETCore.App",
      "version": "6.0.0-preview.3.21168.7"
    }
  }
}

Actual Microsoft.NETCore.App installed is:

Microsoft.NETCore.App 6.0.0-preview.3.21167.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

Microsoft.WindowsDesktop.App.runtimeconfig.json is pointing to a wrong version of Microsoft.NETCore.App.

@dotnet-actwx-bot @dotnet/compat

@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@jiangzeng01
Copy link
Author

This issue should be fixed in 6.0.100-preview.4.21178.2 on main branch, so close

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

No branches or pull requests

1 participant