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

SDK and runtime compatibility #41893

Closed
handerss-spotfire opened this issue Jul 2, 2024 · 3 comments
Closed

SDK and runtime compatibility #41893

handerss-spotfire opened this issue Jul 2, 2024 · 3 comments
Labels
Area-Install untriaged Request triage from a team member

Comments

@handerss-spotfire
Copy link

I asked a similar question a couple of months after .NET 6.0 launched but did not get an answer to my final question (#25220) if the issue was only due to a bug or not.

To recap: a bug in System.Windows.Forms 6.0.2 (dotnet/winforms#6663) caused programs compiled with a 6.0.2 SDK to no longer be executable by 6.0.0 and 6.0.1 runtimes. A response in that issue stated:

Any apps built on 6.0.m will work on the latest 6.0.n (where n > m). However apps built on 6.0.2+ won't work on 6.0.0 or 6.0.1. dotnet/winforms#6663 (comment)

At the time we interpreted this as a general statement, meaning once we target a version of .NET we have to always use the oldest available SDK of that version to ensure all .NET runtimes can run our executable.
Now that we're switching to .NET 8 we have locked the SDK at 8.0.204 and won't receive any more SDK updates until next LTS.

Is this correct or can we use any version of the .NET 8 SDK and guarantee that the compiled artifact will be executable by a .NET 8.0.0 runtime?

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Install untriaged Request triage from a team member labels Jul 2, 2024
@marcpopMSFT
Copy link
Member

@handerss-spotfire From my memory, there was a specific issue in how Windows Desktop ref packs were versioned back with 6.0.2 that caused this issue. I don't remember all of the details but I will believe it was a one-time issue and not intentional going forward. For all versions of 7 and 8, they should require 7.0.0 and 8.0.0 as a minimum runtime so this issue should not occur again (unless we mess things up like we did with 6.0.2).

@RussKie may remember more details of that particular issue.

@marcpopMSFT marcpopMSFT closed this as not planned Won't fix, can't repro, duplicate, stale Jul 12, 2024
@RussKie
Copy link
Member

RussKie commented Jul 15, 2024

There was a bug which led to version increases for Windows Forms ref assemblies, but since we never serviced Windows Desktop SDK until 6.0.2 we hadn't known there was a bug. We have corrected the versioning of our ref assemblies, and since then everything should be working as promised/expected - meaninig doesn't matter what SDK X.Y is used to build an app, it will run against X.0 runtime.

@handerss-spotfire
Copy link
Author

Thanks for the clarifications!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Install untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

3 participants