Использование класса .NET GZipStream с Mono

Я пытаюсь построить пример из класса GZipStream . С помощью команды gmcs gzip.cs я получил сообщения об ошибках. gzip.cs - это тот же источник из msdn.

Кажется, мне нужно добавить ссылку при компиляции. Чего не хватает?

gzip.cs(57,32): error CS1061: Type `System.IO.FileStream' does not contain a definition for `CopyTo' and no extension method `CopyTo' of type `System.IO.FileStream' could be found (are you missing a using directive or an assembly reference?)
/Library/Frameworks/Mono.framework/Versions/2.10.1/lib/mono/2.0/mscorlib.dll (Location of the symbol related to previous error)
gzip.cs(86,40): error CS1061: Type `System.IO.Compression.GZipStream' does not contain a definition for `CopyTo' and no extension method `CopyTo' of type `System.IO.Compression.GZipStream' could be found (are you missing a using directive or an assembly reference?)
/Library/Frameworks/Mono.framework/Versions/2.10.1/lib/mono/gac/System/2.0.0.0__b77a5c561934e089/System.dll (Location of the symbol related to previous error)
Compilation failed: 2 error(s), 0 warnings

РЕШЕНИЕ

Я должен использовать dmcs, а не gmcs, чтобы использовать функции .NET 4.

5
задан prosseek 11 May 2011 в 16:56
поделиться