You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
@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:
VS 17.14 Preview 1 (includes SDK 9.0.200-preview and runtime 9.0.0) + SDK 10.0 P1
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.
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
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
INSTALL STEPS:
Clean machine: Win11 x64 ENU 24h2
Install SDK 10.0.100-preview.1.25104.3 from https://aka.ms/dotnet/10.0.1xx-preview1/daily/dotnet-sdk-win-x64.exe
Apply Feed: https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet10/nuget/v3/index.json
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.
NOTE:
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
The text was updated successfully, but these errors were encountered: