Skip to content

Remove deprecated 4.3.* System package references - #11555

Merged
rainersigwald merged 3 commits into
mainfrom
RemoveRemainingSystem43PackagesWhichAreAnciiiiiiiiient
Mar 10, 2025
Merged

Remove deprecated 4.3.* System package references#11555
rainersigwald merged 3 commits into
mainfrom
RemoveRemainingSystem43PackagesWhichAreAnciiiiiiiiient

Conversation

@ViktorHofer

@ViktorHofer ViktorHofer commented Mar 10, 2025

Copy link
Copy Markdown
Member

Both "System.Runtime" and "System.Private.Uri" are inbox in .NETCoreApp since ~2017 and don't need to be referenced explicitly anymore.

They were referenced here as external dependencies brought vulnerable netstandard1.x dependencies in which were then flagged by CG.

That isn't the case anymore. xunit, shouldly and other packages with their corresponding versions used in this repo don't bring netstandard1.x in anymore.

Don't reference "System.Net.Http" for the same reason. It is inbox on .NET Framework, .NETCoreApp and .NET Standard. On .NET Framework a <Reference Include="System.Net.Http" /> item is needed as it isn't part of the default referenced assemblies.

Note that this change will help when starting to consume a .NET 10 SDK as those would get flagged by NuGet Prune Package Reference and NuGet Audit.

Both "System.Runtime" and "System.Private.Uri" are inbox in .NETCoreApp since ~2017 and don't need to be referenced explicitly anymore.

They were referenced here as external dependencies brought vulnerable netstandard1.x dependencies in which were then flagged by CG.

That isn't the case anymore. xunit, shouldly and other packages with their corresponding versions used in this repo don't bring netstandard1.x in anymore.

Don't reference "System.Net.Http" for the same reason. It is inbox on .NET Framework, .NETCoreApp and .NET Standard. On .NET Framework a "<Reference Include="System.Net.Http" />" item is needed as it isn't part of the default referenced assemblies.

Note that this change will help when starting to consume a .NET 10 SDK as those would get flagged by NuGet Prune Package Reference and NuGet Audit.
@ViktorHofer
ViktorHofer requested a review from a team as a code owner March 10, 2025 11:57
@ViktorHofer ViktorHofer changed the title Remove deprecated 4.3.* package references Remove deprecated 4.3.* System package references Mar 10, 2025
@ViktorHofer
ViktorHofer marked this pull request as draft March 10, 2025 12:25
@rainersigwald
rainersigwald merged commit 3513a27 into main Mar 10, 2025
@rainersigwald
rainersigwald deleted the RemoveRemainingSystem43PackagesWhichAreAnciiiiiiiiient branch March 10, 2025 18:51
@ViktorHofer

Copy link
Copy Markdown
Member Author

/backport to vs17.14

@github-actions

Copy link
Copy Markdown
Contributor

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