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

C# Interactive: The type 'ValueTuple' exists in both 'mscorlib' and 'System.ValueTuple' #21156

Closed
mazhou-msft opened this issue Jul 26, 2017 · 4 comments · Fixed by #21851
Closed
Assignees
Labels
4 - In Review A fix for the issue is submitted for review. Area-Interactive New Language Feature - Tuples Tuples
Milestone

Comments

@mazhou-msft
Copy link

Version Used:
VS 2017.3 Preview 4+ (26723.0 d15rel)
OS 10.0.16251.0 (rs_prerelease)
Steps to Reproduce:

  1. Open VS
  2. View -> Other Windows -> C# Interactive to open C# Interactive Window
  3. Type: ValueTuple.Create() and wait for the error to report

Expected Behavior:
There should be no live errors and the code executes after pressing ENTER.

Actual Behavior:
There is a live compilation error even the above code can be successfully committed and executed.

Error message: The type 'System.ValueTuple' exists in both assembly 'System.ValueTuple, v4.0.1.0' and 'mscorlib, v4.0.0.0'.

Looks like the System.ValueTuple.dll is by default imported even with .NET Framework 4.7 on Windows 10 (it should not be referenced by default if on Windows 10 with net47.)

@pdelvo
Copy link
Contributor

pdelvo commented Aug 13, 2017

As far as I know this should be fixed: dotnet/announcements#25

@jcouv
Copy link
Member

jcouv commented Aug 31, 2017

image

@jcouv jcouv added the 4 - In Review A fix for the issue is submitted for review. label Aug 31, 2017
@jcouv
Copy link
Member

jcouv commented Aug 31, 2017

Fixed by #21851 as part of 15.5

@mazhou-msft
Copy link
Author

Confirm it is now working good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4 - In Review A fix for the issue is submitted for review. Area-Interactive New Language Feature - Tuples Tuples
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants