Unable to return Tuple from a method using Visual Studio 2017 and C# 7.0

前端 未结 4 1373
孤独总比滥情好
孤独总比滥情好 2020-12-08 12:47

I\'ve installed Visual Studio 2017 Community that was released a week ago, and I started exploring the new features of C# 7.

So I created a simple method that return

4条回答
  •  离开以前
    2020-12-08 13:15

    I started getting this error after I installed .Net 4.7 Framework, and changed my project to target .Net 4.7

    ValueTuple is now included with .Net 4.7, so you don't have to reference the ValueTuple manually.

    All I had to do to correct the compile error was remove the reference to System.ValueTuple from my project's references.

提交回复
热议问题