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

Sync ref project references with runtime projects #2878

Merged
merged 2 commits into from
Nov 11, 2024

Conversation

edwardneal
Copy link
Contributor

@edwardneal edwardneal commented Sep 23, 2024

This PR syncs the references of the reference assemblies with those of their respective runtime assemblies. Doing so enables MSBuild's ResolveAssemblyReferences and GenerateBindingRedirects targets to generate the correct binding redirects - so if a downstream library references a later version of Azure.Core or Azure.Identity, VS will generate binding redirects so that SqlClient will use that later version.

Early testing looks promising and I think it'll resolve the issue - but for now, it just relates to #2541 and to #2082.

This should enable ResolveAssemblyReferences to generate the correct binding redirects.
Copy link
Contributor

@benrr101 benrr101 left a comment

Choose a reason for hiding this comment

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

This change seems pretty reasonable to me. Let's get the merge conflicts fixed and make sure the test runs pass and we'll get it merged. Thanks for looking into this!

@benrr101 benrr101 added this to the 6.0-preview3 milestone Nov 1, 2024
@edwardneal
Copy link
Contributor Author

Thanks @benrr101 - just merged!

Copy link

codecov bot commented Nov 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.31%. Comparing base (87fa6dc) to head (1aa1508).
Report is 26 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2878      +/-   ##
==========================================
- Coverage   72.31%   72.31%   -0.01%     
==========================================
  Files         288      288              
  Lines       59660    59660              
==========================================
- Hits        43146    43144       -2     
- Misses      16514    16516       +2     
Flag Coverage Δ
addons 92.58% <ø> (ø)
netcore 75.41% <ø> (-0.01%) ⬇️
netfx 70.69% <ø> (-0.01%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mdaigle mdaigle merged commit 2fc320b into dotnet:main Nov 11, 2024
76 checks passed
@mdaigle mdaigle added the ➕ Code Health Issues/PRs that are targeted to source code quality improvements. label Nov 11, 2024
@edwardneal edwardneal deleted the sync-ref-project-dependencies branch November 11, 2024 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
➕ Code Health Issues/PRs that are targeted to source code quality improvements.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants