Compiling System.Tuple in Mono

I'm attempting to compile some C# with gmcs version 2.11.0 that includes System.Tuple. Supposedly it does exist in Mono (http://stackoverflow.com/questions/5346453/mono-is-there-a-system-tuple) and it is possible to compile using the flag:

gmcs -langversion:future

It doesn't seem to matter which langversion I use, the compiler always gives the same error:

error CS0234: The type or namespace name `Tuple' does not exist in the namespace `System'. Are you missing an assembly reference?

How can I compile C# code using Mono that uses System.Tuple?

Answers


I believe the problem is that gmcs targets the Mono framework version equivalent to .NET 3.5. You could either try to persuade gmcs to target the Mono framework version equivalent to .NET 4, or you could use dmcs instead. (I couldn't get it to work even with gmcs -sdk:4 which I expected to work, so dmcs may be a better bet.)


Need Your Help

Where I'm making a mistake in manipulating multi-dimensional array in following scenario?

php arrays multidimensional-array associative-array key-value

I've a large array titled $files. For understanding purpose I'm just putting small part of this array as follows(output of print_r($files);):

Comparing two compass bearings

javascript jquery

I have two compass bearings (0-360 degrees):

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.