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

With SDK 10.0 preview 1 and runtime 9.0.0 installed (default configuration for VS 17.14 P1 + SDK 10.0 P1), when you run a 9.0 console app, you get error: you must install or update .NET to run this application. #46553

Closed
EricJia01 opened this issue Feb 5, 2025 · 3 comments
Labels
untriaged Request triage from a team member
Milestone

Comments

@EricJia01
Copy link

EricJia01 commented Feb 5, 2025

INSTALL STEPS:

  1. Clean machine: Win11 x64 ENU 24h2

  2. Install SDK 10.0.100-preview.1.25104.3 from https://aka.ms/dotnet/10.0.1xx-preview1/daily/dotnet-sdk-win-x64.exe

  3. Apply Feed: https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet10/nuget/v3/index.json

  4. Install SDK 9.0.101(include 9.0.0 runtime) from https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/sdk-9.0.101-windows-x64-installer

REPRO STEPS​:
1.Open cmd, create a 9.0 console app by cmd: dotnet new console -f net9.0
2.Then execute dotnet run.

ACTUAL:
Get this result after running the project: You must install or update .NET to run this application.

Image

NOTE:

  1. This issue cannot be reproduced on SDK 9.0.102(include 9.0.1 runtime) and SDK 10.0.0 preview 1 installed.
  2. This issue cannot be reproduced on 8.0 console app.
  3. This issue can be reproduced on Dev 17.14 Preview 1 with 10.0.0-preview 1 SDK installed.
  4. This issue can be reproduced on 9.0 Blazor web app/ASP.NET Core Empty/ASP.NET Core Web App (Razor Pages/MVC)

EXPECTED
Can run successfully.

Dotnet info:
.NET SDK:
Version: 10.0.100-preview.1.25104.26
Commit: 96f38f4
Workload version: 10.0.100-manifests.bf5105ba
MSBuild version: 17.14.0-preview-25103-04+66061962d

Runtime Environment:
OS Name: Windows
OS Version: 10.0.22631
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\10.0.100-preview.1.25104.26\

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

Host:
Version: 10.0.0-preview.1.25080.5
Architecture: x64
Commit: b98cabca12

.NET SDKs installed:
9.0.101 [C:\Program Files\dotnet\sdk]
10.0.100-preview.1.25104.26 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 9.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 10.0.0-preview.1.25103.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 9.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 10.0.0-preview.1.25080.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 9.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 10.0.0-preview.1.25080.4 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
None

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 the untriaged Request triage from a team member label Feb 5, 2025
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.

1 similar comment
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.

@balachir balachir added this to the 10.0.1xx milestone Feb 5, 2025
@balachir
Copy link

balachir commented Feb 5, 2025

@marcpopMSFT @dsplaisted , can you help investigate? This seems to be a blocking issue for the SDK 10.0 Preview 1 / VS 17.14 Preview 1 release. According to the findings above, this issue reproduces for the following configurations:

  1. VS 17.14 Preview 1 (includes SDK 9.0.200-preview and runtime 9.0.0) + SDK 10.0 P1
  2. SDK 9.0.101 with runtime 9.0.0 + SDK 10.0 P1

Configuration 1 above is the important one as that's the default behavior right now for VS 17.14 P1.

Including @richaverma1 and @leecow for awareness.

@balachir balachir changed the title Cannot run 9.0 console app in SDK 10.0 preview 1 and SDK 9.0.101 installed: you must install or update .NET to run this application. With SDK 10.0 preview 1 and runtime 9.0.0 installed (default configuration for VS 17.14 P1), when you run a 9.0 console app, you get error: you must install or update .NET to run this application. Feb 5, 2025
@balachir balachir changed the title With SDK 10.0 preview 1 and runtime 9.0.0 installed (default configuration for VS 17.14 P1), when you run a 9.0 console app, you get error: you must install or update .NET to run this application. With SDK 10.0 preview 1 and runtime 9.0.0 installed (default configuration for VS 17.14 P1 + SDK 10.0 P1), when you run a 9.0 console app, you get error: you must install or update .NET to run this application. Feb 5, 2025
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

3 participants