Skip to content

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants