-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Avoid libraries referencing 4.3.x packages #85641
Comments
Tagging subscribers to this area: @dotnet/area-infrastructure-libraries Issue DetailsPart of dotnet/arcade#13315 The following packages reference 4.3.x BCL packages and with that bring in the netstandard1.x dependency graph. See the linked issue for why this is undesirable.
The ones that reference The libraries that reference cc @dotnet/area-extensions-hosting @dotnet/area-system-security @dotnet/area-extensions-logging @vcsjones
|
@ViktorHofer any help needed from our side or you are going to take care fixing the issues listed here? |
Just spoke about this in length with @ericstj and I should be able to fix these via two PRs myself. Will ask you for reviews tomorrow. |
Contributes to dotnet#85641 System.Runtime.InteropServices.RuntimeInformation/4.3.0 is being referenced in a few .NET Framework builds. The reference to that package is undesirable as it brings in the entire netstandard1.x dependency graph. Instead, use System.Environment.OSVersion which returns "Microsoft Windows NT" on .NET Framework, Mono and .NETCoreApp runtimes.
Contributes to #85641 System.Runtime.InteropServices.RuntimeInformation/4.3.0 is being referenced in a few .NET Framework builds. The reference to that package is undesirable as it brings in the entire netstandard1.x dependency graph. Instead, use System.Environment.OSVersion which returns "Microsoft Windows NT" on .NET Framework, Mono and .NETCoreApp runtimes.
Contributes to dotnet#85641 System.Security.Cryptography.Algorithms/4.3.1 is being referenced in a few .NET Framework builds. The reference to that package is undesirable as it brings in the entire netstandard 1.x dependency graph. The only type used from that package is IncrementalHash which isn't available as a public API in .NET Framework before 4.7.1. Because of that, polyfill the netfx code in with minor changes to the source to make the analyzers happy.
* Remove S.Sec.Crypto.Algorithms package dependency Contributes to #85641 System.Security.Cryptography.Algorithms/4.3.1 is being referenced in a few .NET Framework builds. The reference to that package is undesirable as it brings in the entire netstandard 1.x dependency graph. The only type used from that package is IncrementalHash which isn't available as a public API in .NET Framework before 4.7.1. Because of that, polyfill the netfx code in with minor changes to the source to make the analyzers happy.
Completed. Closing. |
Part of dotnet/arcade#13315
The following packages reference 4.3.x BCL packages and with that bring in the netstandard1.x dependency graph. See the linked issue for why this is undesirable.
The ones that reference
System.Runtime.InteropServices.RuntimeInformation
are .NET Framework builds. It should be fine for that codebase to assume that it runs on .NET Framework Windows only.The libraries that reference
System.Security.Cryptography.Algorithms
use it internally without exposing its API and only use theIncrementalHash
type. It might be possible to add down-level support via compiling type into those builds to avoid the dependency.cc @dotnet/area-extensions-hosting @dotnet/area-system-security @dotnet/area-extensions-logging @vcsjones
The text was updated successfully, but these errors were encountered: