Skip to content

Remove Explicit System.Reflection.Metadata reference#4743

Merged
LoopedBard3 merged 1 commit intodotnet:mainfrom
LoopedBard3:FixSystemReflectionError
Mar 3, 2025
Merged

Remove Explicit System.Reflection.Metadata reference#4743
LoopedBard3 merged 1 commit intodotnet:mainfrom
LoopedBard3:FixSystemReflectionError

Conversation

@LoopedBard3
Copy link
Copy Markdown
Member

@LoopedBard3 LoopedBard3 commented Mar 3, 2025

Remove System.Reflection.Metadata explicit reference as it is triggering a NU1510 warning which we treat as an error. It is not necessary to explicitly reference it as it seems to be an in-band package. I tested this locally and it fixed the error on net10, net9 doesn't seem to hit the error either way, and it doesn't seem to break net8.

Fixes an issue caused by: #4699, although for whatever reason the CI did not fail, likely due to a coinciding update that made this an actual warning as it was recently added: https://github.com/NuGet/docs.microsoft.com-nuget/blob/main/docs/reference/errors-and-warnings/NU1510.md.

@LoopedBard3 LoopedBard3 added bug Something isn't working dependencies Pull requests that update a dependency file labels Mar 3, 2025
@LoopedBard3 LoopedBard3 requested review from a user, DrewScoggins and caaavik-msft March 3, 2025 19:33
@LoopedBard3 LoopedBard3 self-assigned this Mar 3, 2025
@LoopedBard3 LoopedBard3 changed the title Remove System.Reflection.Metadata reference Remove Explicit System.Reflection.Metadata reference Mar 3, 2025
ghost
ghost previously approved these changes Mar 3, 2025
…ing a NU1510 warning which we treat as an error. It is not necessary to explicitly reference it as it seems to be an in-band package.
@LoopedBard3 LoopedBard3 force-pushed the FixSystemReflectionError branch from f474a44 to f7a96e7 Compare March 3, 2025 20:31
@LoopedBard3 LoopedBard3 requested a review from a user March 3, 2025 21:19
@LoopedBard3 LoopedBard3 merged commit a5dd0eb into dotnet:main Mar 3, 2025
76 of 83 checks passed
@LoopedBard3 LoopedBard3 deleted the FixSystemReflectionError branch March 3, 2025 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants