You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a projects references two libraries with the same type defined in the same namespace CS0433 is triggered if this type is used. A code fix should be offered that
adds an alias to the library reference,
adds an corresponding extern alias directive to the document
The fix should also be offered for warning CS0436 The type 'type' in 'assembly' conflicts with the imported type 'type2' in 'assembly'. Using the type defined in 'assembly'.
Before the fix:
Assembly1 File1.cs
namespaceN1{publicclassAmbiguous{}}
Assembly2 File2.cs
namespaceN1{publicclassAmbiguous{}}
TestAssembly
References Assembly1 and Assembly2
File3.cs in TestAssembly
Version Used:
VS 15.5.2
Steps to Reproduce:
If a projects references two libraries with the same type defined in the same namespace CS0433 is triggered if this type is used. A code fix should be offered that
The fix should also be offered for warning
CS0436 The type 'type' in 'assembly' conflicts with the imported type 'type2' in 'assembly'. Using the type defined in 'assembly'.
Before the fix:
Assembly1 File1.cs
Assembly2 File2.cs
TestAssembly
References Assembly1 and Assembly2
File3.cs in TestAssembly
After the fix:
TestAssembly
References Assembly1 reference is aliased with Assembly1Alias and Assembly2
File3.cs in TestAssembly
Relates to #23326.
The text was updated successfully, but these errors were encountered: