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

前端 未结 4 1415
孤独总比滥情好
孤独总比滥情好 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:17

    I Just ran through this page on Roslyn which describes the following steps to get this working:

    1. Start a C# project
    2. Add a reference to the System.ValueTuple package from NuGet (pre-release)

    Following those steps, it is now working. But it is really very weird that we need to do that for every single project that we start! Hope this is fixed when we reach the Official release!

提交回复
热议问题