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

[NETSDKE2E]With net9 preview 7 sdk installed, Running winforms/wpf failed in CLI. #42012

Closed
vdanche opened this issue Jul 8, 2024 · 6 comments
Labels
Area-CLI untriaged Request triage from a team member

Comments

@vdanche
Copy link
Member

vdanche commented Jul 8, 2024

Repro steps:
1.install net9 preview 7 SDK(9.0.100-preview.7.24357.2(runtime-9.0.0-preview.7.24352.15))
1.in CLI, dotnet new winforms or dotnet new wpf
2.dotnet run

Expected Result:
Run successfully

Actual Result
Run failed with below dialog.
image

dotnet --info:
.NET SDK:
Version: 9.0.100-preview.7.24357.2
Commit: 9cf65a0
Workload version: 9.0.100-manifests.4ffd17c4
MSBuild version: 17.12.0-preview-24354-03+07be3a17b

Runtime Environment:
OS Name: Windows
OS Version: 10.0.20348
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\9.0.100-preview.7.24357.2\

.NET workloads installed:
Configured to use loose manifests when installing new manifests.
There are no installed workloads to display.

Host:
Version: 9.0.0-preview.7.24352.15
Architecture: x64
Commit: static

.NET SDKs installed:
9.0.100-preview.7.24357.2 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 9.0.0-preview.7.24355.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 9.0.0-preview.7.24352.15 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 9.0.0-preview.7.24356.1 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
x86 [C:\Program Files (x86)\dotnet]

Environment variables:
Not set

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-CLI untriaged Request triage from a team member labels Jul 8, 2024
@v-ainigao
Copy link

This issue also repro's on ARM64OS with .net9.0.100-preview.7.24357.2sdk installed.
image

@marcpopMSFT
Copy link
Member

This is a coherency issue. We're still working on getting our tests updated to catch this type of issue. More codeflow will resolve it.

@v-ainigao
Copy link

v-ainigao commented Jul 9, 2024

This is a coherency issue. We're still working on getting our tests updated to catch this type of issue. More codeflow will resolve it.

Thanks Marc, this issue does not repro today on .net9.0.100-preview.7.24358.12sdk.
image

@vdanche vdanche closed this as completed Jul 9, 2024
@vdanche
Copy link
Member Author

vdanche commented Jul 12, 2024

Repro again on 9.0.100-preview.7.24357.2 (runtime-9.0.0-preview.7.24352.15) SDK, hence re-open it to keep tracking
image

@vdanche vdanche reopened this Jul 12, 2024
@marcpopMSFT
Copy link
Member

Until we get a test in place to stop it, this will happen every time that windows desktop (or aspnet) inserts into SDK before runtime does. You can potentially check this by searching for active runtime codeflows and seeing how old they are: https://github.com/dotnet/sdk/pulls?q=is%3Apr+is%3Aopen+cedddd63-79f5-4e7e-6d46-08dc434c4948

@vdanche
Copy link
Member Author

vdanche commented Jul 16, 2024

not repro on 9.0.100-preview.7.24365.17. hence close it.
image

@vdanche vdanche closed this as completed Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-CLI untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

3 participants