简体   繁体   中英

Is CoreCLR support System.Collection.Generic types?

I hope someone in CoreCLR team will be in Stacks. I am very excited with CoreCLR. I tried to compile with the command:

C:\coreclr-demo>csc /nostdlib /noconfig /r:packages\System.Runtime.4.0.20-beta-2
2703\lib\contract\System.Runtime.dll /r:packages\System.Console.4.0.0-beta-22703
\lib\contract\System.Console.dll /out:runtime\HelloWorld.exe HelloWorld.cs

It's work. But if I change my code to have Collection (List,Stack...) object, it's will through error, somekind of The type or namespace name 'Stack' could not be found , although, I got this error everytime I try to using any namespace except System . I think may be I missed a library reference in the csc command to System.Collection.Generic. But I don't know where to find it, and from an post in CoreCLR github talk about Generic , I think the System.Collection.Generic was removed from CoreCLR. So I want to ask: Is CoreCLR support System.Collection.Generic , and, if yes, how can I use it with my compiling?
Thankyou

  • System.Collection s .Generic is supported in CoreCLR
  • In order to compile in this new world you need to use dnx or dotnet
  • I recommend that you follow this intro to understand how to create projects using the new project model and add references to the NuGet packages that you need.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM