Skip to content
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

Set IgnoreCorLibraryDuplicatedTypes for scripting #784

Closed
filipw opened this issue Feb 28, 2017 · 0 comments
Closed

Set IgnoreCorLibraryDuplicatedTypes for scripting #784

filipw opened this issue Feb 28, 2017 · 0 comments
Assignees
Labels

Comments

@filipw
Copy link
Member

filipw commented Feb 28, 2017

At the moment, in some edge cases, it's possible that we would incorrectly report the following type of issue in scripting

error CS0433: The type 'Console' exists in both 'System.Console, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' 
and 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

This has been fixed in Roslyn in this PR dotnet/roslyn@43a72d9 however, to enable this we'll need to use reflection as the API that solves the problem (.WithTopLevelBinderFlags(BinderFlags.IgnoreCorLibraryDuplicatedTypes))) is internal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant