dotnet / dotnet/sdk

MU brings newer version of Microsoft.AspNetCore.App without corresponding version of Microsoft.NETCore.App

Open
#41,277 9 comments 0 reactions 1 assignee Claimed by @joeloff View on GitHub
Area-Install untriaged
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

I ran into an issue that dotnet version "8.0.5" is missing. My application is targeting sdk "version": "8.0.204" which uses the runtime version 8.0.4. Through a windows security patch we got Microsoft.AspNetCore.App 8.0.5 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] pushed into the developer machine. Since then I'm getting this error at the time of application start up.

One observation was this is happening because we have the following framework reference through some common libraries that we are using.

` `

I was expecting the version specified in the runtimeconfig.template file would be honored but that doesn't seems to be happening.
Not sure if this is an issue or something I'm missing here. Any help on this is appreciated.

OS: Windows

**_SDK and Runtime list_**

![image](https://github.com/dotnet/runtime/assets/17437409/469ec381-24ad-468c-8cf7-b17cb1cab85b)

**_runtimeconfig.template.json_**
```

{
"runtimeOptions": {
"tfm": "net8.0",
"rollForward": "Disable",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "8.0.4"
},
"configProperties": {
"System.GC.Concurrent": false,
"System.GC.Server": true
}
}
}

```

**_global.json_**

```
{
"sdk": {
"version": "8.0.204"
}
}
```

**_Error_**

Architecture: x64
Framework: 'Microsoft.NETCore.App', version '8.0.5' (x64)
.NET location: C:\Program Files\dotnet\

The following frameworks were found:
2.1.30 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
6.0.30 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
7.0.2 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
7.0.3 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
7.0.18 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
8.0.1 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
8.0.3 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
8.0.4 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

Learn more:
https://aka.ms/dotnet/app-launch-failed

To install missing framework, download:
https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=8.0.5&arch=x64&rid=win-x64&os=win10

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.