-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Conflict resolution doesn't drop copy local assemblies which were absorbed into .NETStandard2.1 #18129
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
I was able to workaround this with the following:
My suggestion of using |
Is |
Right, but people still do it, and in some places we tell customers to do it (EG: roslyn analyzers). We could block it completely, but I suspect that's too breaking. If we allow it, then we should fix this. |
Build the following project:
Expect:
System.Buffers.dll, System.Memory.dll, System.Numerics.Vectors.dll should be absent from the output directory.
Actual:
All are present.
These are all conflict resolved from the reference assets, but not runtime. It looks like netstandard is missing runtime handling for conflict resolution. Looks like the same thing happened during
netstandard2.0
so this isn't new.Perhaps we could avoid this by leveraging
sdk/src/Tasks/Common/ConflictResolution/ResolvePackageFileConflicts.cs
Lines 35 to 44 in a30e465
Might improve perf on netstandard as well.
The text was updated successfully, but these errors were encountered: