Skip to content

Wrong RuntimeFrameworkVersion indicated in runtimeconfig #23764

Open
@rnsoon

Description

@rnsoon

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Given section in project file:
image

The resulting runtimeconfig is as follows:
image

Application will not run unless 6.0.0 is installed or a different rollforward strategy is used (e.g., latestpatch).

Expected Behavior

Runtimeconfig.json must indicate the 6.0.1 as the targeted .NET runtime version (as in RuntimeFrameworkVersion)

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

.net 6

Anything else?

Using VS 2022

dotnet --info
.NET SDK (reflecting any global.json):
Version: 6.0.101
Commit: ef49f62

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.101\

Host (useful for support):
Version: 6.0.1
Commit: 3a25a7f1cc

.NET SDKs installed:
6.0.101 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.22 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.22 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.1 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions