Visual C# Error: The type or namespace name 'Compression' does not exist in the namespace 'System.IO'

Go To StackoverFlow.com

1

I am trying to compile a tile map editor so I can use it to work on a game, but I am getting the error "The type or namespace name 'Compression' does not exist in the namespace 'System.IO'" when I try to build in Visual C#. Does anyone know how I can fix this? I tried google but I found nothing.

2012-04-04 01:32
by user1150769


6

You probably don't have a reference to System.dll, or you're using a version of .NET before version 2.0.

2012-04-04 01:33
by Mehrdad
I am using .NET 4.0. How would I add a reference to System.dll - user1150769 2012-04-04 01:41
@user1150769: Right-click "References" in the Solution Explorer pane and click Add Reference, then look for System.dll - Mehrdad 2012-04-04 01:46
Thanks! That fixed it - user1150769 2012-04-04 02:01
Ads