Open marek-safar opened 9 years ago
Assigning to the 1.1 milestone for evaluation.
Thanks for the great repro!
Took a look and it appears the native compiler actually rejects both of these command lines with the following:
System.Diagnostics.Tracing.dll: error CS1703: An assembly with the same identity 'System.Diagnostics.Tracing,
Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' has already been imported. Try
removing one of the duplicate references.
c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\Facades\System.Diagnostics.Tracing.dll: (Location of symbol related to previous error)
There were some rule changes to relax how we merge assemblies with similar identities. @tmat was this an intended consequence of those changes?
Class1.cs file is declared as following
This compiles fine
Reversing order of System.Diagnostics.Tracing.dll like
produces compiler error
Class1.cs(3,29): error CS0433: The type 'EventCommand' exists in both 'System.Diagnostics.Tracing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' and 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
PCL/System.Diagnostics.Tracing.dll can be found at https://gist.github.com/marek-safar/cfc7fd657c80581f76ab