-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Only include DesignTimeFacadeAssemblies which are not in ReferencePath #1520
Conversation
I guess you can delete the fix from the SDK now: https://github.com/dotnet/sdk/blob/7eb264f9cc5153b24793878307c4c410bd03ff68/src/Tasks/Microsoft.NET.Build.Tasks/build/Microsoft.NET.Sdk.targets#L285-L320 |
@dotnet-bot test Windows_NT Build for Desktop please |
I was taking another look at this the other day, and while I think this is the smallest tactical fix I noticed something that might be better. ImplicitlyExpandDesignTimeFacades always adds all facades and causes conflicts, but I noticed that RAR is already getting the path to the facades via $(TargetFrameworkDirectory). I then see that RAR actually selects the subset of facades that are actually needed and outputs them via |
No I don't recall why that is the case. I didn't even know RAR was getting the path to the facades at all. |
If that's the case, then it looks like |
Yeah I don't history on this - I wasn't aware of it. |
Including some of the committers from the new home of the csc target, maybe they know more. @tannergooding, @agocke, @AArnott, do you know more about @ericstj's proposal of deleting the ImplicitlyExpandDesignTimeFacades target and changing the CSC task invocation to include the output of RAR, ReferenceDependencyPaths, which supposedly contains the target framework facade dlls? If not, I'll start experimenting with it and see what breaks. The risky part of the change is unknown consequences, since a large population of things flow through RAR and CSC :) |
@cdmihai That code is before my time, so unfortunately my advice is just try it and see :) |
@dotnet-bot test Windows_NT Build for Desktop please |
1 similar comment
@dotnet-bot test Windows_NT Build for Desktop please |
I'm afraid I'm not this deeply familiar with resolving references. @crmann1 may know. |
Resolves #1345