Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

#643 Conditionally including legacy packages #644

Merged
merged 1 commit into from
Oct 17, 2021
Merged

#643 Conditionally including legacy packages #644

merged 1 commit into from
Oct 17, 2021

Conversation

nathan-alden-sr
Copy link
Contributor

Summary of the PR

The Microsoft.Bcl.HashCode and Ultz.Bcl.Half packages are now being conditionally included based on the TFM.

Package Included with TFMs
Microsoft.Bcl.HashCode netstandard2.0
Ultz.Bcl.Half netstandard2.0;netstandard2.1;netcoreapp3.1

Related issues, Discord discussions, or proposals

Discord link in related issue.

Further Comments

I tested this locally by running dotnet build with --framework netstandard2.0 for the five affected projects, then checking their references in ReSharper's Assembly Explorer. You can see the reference differences below:

image

I did not have to modify any source files due to this change. I think that's because the two types in question are in the System namespace, which is included in nearly every source file.

@Perksey
Copy link
Member

Perksey commented Oct 17, 2021

@HurricanKai You're marked for review as the maths codeowner. Presume you're fine with this?

@HurricanKai
Copy link
Member

Of course. Given the MSBuild magic works 😄

@Perksey Perksey merged commit 196b29e into dotnet:main Oct 17, 2021
Perksey pushed a commit that referenced this pull request Nov 20, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants