-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 NetCoreReference #9914
base: main
Are you sure you want to change the base?
Remove NetCoreReference #9914
Conversation
This removes the `NetCoreReference` infrastructure and replaces it with `DefaultReferenceExclusion` to remove the one problematic implicit reference to WindowsBase. Manually picking references was blocking using System.Private.Windows.Core from the WinForms repo. Not having this also greatly simplifies the projects. This also tweaks the solution to add folders docs and eng items. Fixes dotnet#9168
src/Microsoft.DotNet.Wpf/src/PresentationUI/PresentationUI.csproj
Outdated
Show resolved
Hide resolved
</_referenceExclusion> | ||
|
||
<Reference Remove="@(_referenceExclusion)" | ||
MatchOnMetadata="AssemblyName;FrameworkReferenceName;ExternallyResolved"/> |
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.
Did you need all of this - I guess you did this so you wouldn't need to intersect DefaultReferenceExclusion
with Reference
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.
I tried a number of different ways, and this seemed to be the cleanest and easiest to maintain.
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.
Nice, very clean!
This removes the
NetCoreReference
infrastructure and replaces it withDefaultReferenceExclusion
to remove the one problematic implicit reference to WindowsBase.Manually picking references was blocking using System.Private.Windows.Core from the WinForms repo. Not having this also greatly simplifies the projects.
This also tweaks the solution to add folders docs and eng items.
Fixes #9168
Microsoft Reviewers: Open in CodeFlow