Skip to content
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

Remove redundant NuGet package references. #1849

Merged
merged 1 commit into from Jan 13, 2023
Merged

Remove redundant NuGet package references. #1849

merged 1 commit into from Jan 13, 2023

Conversation

teo-tsirpanis
Copy link
Contributor

This PR removes dependencies to NuGet packages that are not needed for each framework we target. Some packages are useless for anything other than .NET Standard 1.x and cause an explosion of transitive dependencies (such as System.IO), others provide functionality that became inbox in newer frameworks (such as System.Buffers for .NET Standard 2.1 and .NET 6, or Microsoft.Win32.Registry for .NET 6), and others were unused (such as System.Security.Cryptography.Algorithms which provides IncrementalHash on older .NET Framework versions which is not used by this library).

I didn't change any executable code, if CI passes it should be OK. Let's see if I missed anything.

Fixes NuGet/Home#12240.

@teo-tsirpanis
Copy link
Contributor Author

Overlaps with #1536; this one is simpler and more targeted.

@codecov
Copy link

codecov bot commented Nov 25, 2022

Codecov Report

Base: 70.19% // Head: 69.20% // Decreases project coverage by -0.99% ⚠️

Coverage data is based on head (4709bee) compared to base (03f3053).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1849      +/-   ##
==========================================
- Coverage   70.19%   69.20%   -1.00%     
==========================================
  Files         292      292              
  Lines       61727    61727              
==========================================
- Hits        43331    42718     -613     
- Misses      18396    19009     +613     
Flag Coverage Δ
addons 92.38% <ø> (ø)
netcore 73.30% <ø> (-0.79%) ⬇️
netfx 67.59% <ø> (-0.79%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...c/Microsoft/Data/SqlClient/TdsParserStateObject.cs 26.18% <0.00%> (-23.00%) ⬇️
...c/Microsoft/Data/SqlClient/TdsParserStateObject.cs 23.30% <0.00%> (-22.77%) ⬇️
...ata/SqlClient/SqlConnectionTimeoutErrorInternal.cs 30.35% <0.00%> (-21.43%) ⬇️
...re/src/Microsoft/Data/SqlClient/SNI/SNINpHandle.cs 73.77% <0.00%> (-4.92%) ⬇️
.../src/Microsoft/Data/SqlClient/SNI/SNIMarsHandle.cs 87.89% <0.00%> (-4.49%) ⬇️
...nt/src/Microsoft/Data/ProviderBase/TimeoutTimer.cs 78.57% <0.00%> (-3.58%) ⬇️
...crosoft/Data/ProviderBase/DbReferenceCollection.cs 92.63% <0.00%> (-3.16%) ⬇️
...rc/Microsoft/Data/ProviderBase/DbConnectionPool.cs 85.02% <0.00%> (-0.84%) ⬇️
...c/Microsoft/Data/SqlClient/SqlConnectionFactory.cs 68.85% <0.00%> (-0.82%) ⬇️
.../Microsoft/Data/SqlClient/SNI/SNIMarsConnection.cs 76.72% <0.00%> (-0.63%) ⬇️
... and 9 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@lcheunglci lcheunglci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for your contributions

@lcheunglci lcheunglci added this to the 5.1.0 milestone Jan 13, 2023
@lcheunglci lcheunglci merged commit 070ec72 into dotnet:main Jan 13, 2023
@teo-tsirpanis teo-tsirpanis deleted the nuget-fix branch January 13, 2023 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💡 Enhancement New feature request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dotnet publish -r win10-x64 restores vulnerable package
3 participants