Skip to content

Remove deprecated .Net runtime #10423

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

Merged

Conversation

ThomasGoulet73
Copy link
Contributor

@ThomasGoulet73 ThomasGoulet73 commented Feb 7, 2025

Description

Removes .Net Core 2.1.7 which is EOL since 2021. I cannot find a use for it anywhere in this repo and if it does break something we should fix it instead of relying on an EOL runtime.

It's downloaded on each build (Though locally cached) so it should improve the build speed a little bit, especially in CI.

Customer Impact

None, build only.

Regression

No.

Testing

Local build + CI.

Risk

Low, it would only break the WPF build and can always be reverted (Though we really shouldn't keep using .Net Core 2.1.7 since it's EOL).

Microsoft Reviewers: Open in CodeFlow

@ThomasGoulet73 ThomasGoulet73 requested review from a team as code owners February 7, 2025 01:42
@dotnet-policy-service dotnet-policy-service bot added PR metadata: Label to tag PRs, to facilitate with triage Community Contribution A label for all community Contributions labels Feb 7, 2025
@h3xds1nz
Copy link
Member

h3xds1nz commented Feb 7, 2025

Is there any reason we keep this node around?
WF/runtime doesn't have it for example. Plus its 3 years old version if it meant anything.

"vs": {
  "version": "17.2"
}

@dipeshmsft
Copy link
Member

Is there any reason we keep this node around?
WF/runtime doesn't have it for example. Plus its 3 years old version if it meant anything.

Not sure about this.

@ThomasGoulet73
Copy link
Contributor Author

Is there any reason we keep this node around? WF/runtime doesn't have it for example. Plus its 3 years old version if it meant anything.

"vs": {
  "version": "17.2"
}

It is used to detect the type of build engine to use, "Visual Studio" or "dotnet". The Arcade infrastructure checks if global.json contains the tool "vs" and if it does it uses the build engine "Visual Studio". For WPF, we need to use the "Visual Studio" build engine because there's .vcxproj projects and the "dotnet" build engine does not support .vcxproj projects (You can't do "dotnet build Project.vcxproj").

As for the version, we could probably raise the minimum version but I would prefer to do it in a separate PR since it could have an impact on the build and this PR as-is should have 0 impact on the build.

@h3xds1nz
Copy link
Member

h3xds1nz commented Feb 8, 2025

It is used to detect the type of build engine to use, "Visual Studio" or "dotnet". The Arcade infrastructure checks if global.json contains the tool "vs" and if it does it uses the build engine "Visual Studio". For WPF, we need to use the "Visual Studio" build engine because there's .vcxproj projects and the "dotnet" build engine does not support .vcxproj projects (You can't do "dotnet build Project.vcxproj").

As for the version, we could probably raise the minimum version but I would prefer to do it in a separate PR since it could have an impact on the build and this PR as-is should have 0 impact on the build.

I see, thanks for the explanation, Thomas.

Yeah, definitely this doesn't have to be in this PR. But I guess it would be nice to test the waters. Locally I didn't see an issue.

@dipeshmsft dipeshmsft merged commit de23c2f into dotnet:main Feb 10, 2025
8 checks passed
@dipeshmsft
Copy link
Member

Thanks @ThomasGoulet73, if we face any issues in build, we will revert this.

@ThomasGoulet73
Copy link
Contributor Author

Thanks @dipeshmsft

@ThomasGoulet73 ThomasGoulet73 deleted the remove-deprecated-.net-runtime branch February 11, 2025 00:39
@github-actions github-actions bot locked and limited conversation to collaborators Mar 13, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Community Contribution A label for all community Contributions PR metadata: Label to tag PRs, to facilitate with triage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants