-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[release/3.1] Expose all references when not restoring #33197
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
Conversation
|
Looks like this is causing SharedFx tests to fail
|
|
This is blocked for now because the Arcade SDK doesn't set /btw dotnet/arcade@c2875f0932d alone doesn't work in release/3.x because that uses a |
d15c7a6 to
2f06b0d
Compare
75915c0 to
2f26e3a
Compare
|
The current changes do not remove all CS1705 workarounds. Still need a lot of |
Good news is these workarounds are all in test (or test asset), sample, and (in one case) benchmark projects. |
|
Temporarily blocked on dotnet/arcade#7612 and an Arcade dependency update in our 'release/3.1' after that. I'll rebase and remove the extra commits to use 'General Testing' assemblies when that'll work… |
|
Please review but ignore 92376e7 changes |
wtgodbe
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
- backport of 0b0bed3 (#32718) * Expose all references when not restoring - use empty `$(MSBuildRestoreSessionId)` to determine when contributing to dependency graph * Remove extra direct references - should now be part of the dependency graph automatically * Avoid errors about non-shared Fx references - not a problem unless executing `restore` target * Special case source builds
- use `$(CompileUsingReferenceAssemblies)` to avoid new references in generated projects
- back-ports a very small part of 5266918 - avoid incorrect errors about extra references in shared framework - safe because every `$(IsAspNetCoreApp)` project targets (or multi-targets) `netcoreapp3.1`
- additional projects in this branch have TFM-specific references
- no need to mention Microsoft.AspNetCore.DataProtection twice
1a79d3b to
d0af3f2
Compare
- brought in due to improved reference discovery
|
This is no longer |
|
My memory is foggy now, what problem was this trying to solve? |
Remember our STEW and STJ issues in 5.0.x❔ That problem stemmed from not finding transitive references and thereby missing unexpected assembly versions in our tests. This change ensures all assemblies from NETCore.App and the transport package (in later branches) are exposed, ship correctly, and verified in our tests. |
$(MSBuildRestoreSessionId)to determine when contributing to dependency graphrestoretarget