I'm trying to use mono to build a C# application for linux. But it seems that Dictionary<> and List<> are not available? I can't find any solution for this problem and I find it kind a strange because those two are pretty basic in my opinion...
this is the test code
using System.Collections.Generic;
namespace Test
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("TESTTEST");
List<string> s = new List<string>();
Console.Read();
}
}
}
And this is the result in the console screen:
WARNING: The runtime version supported by this application is unavailable. Using default runtime: v1.1.4322
** (Test.exe:3152): WARNING **: The class System.Collections.Generic.List`1 coul d not be loaded, used in mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyTo ken=b77a5c561934e089
Unhandled Exception: System.TypeLoadException: Could not load type 'System.Colle ctions.Generic.List`1' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral , PublicKeyToken=b77a5c561934e089'. Druk op een toets om door te gaan. . .