Unity 2019.2.17 System.IO.Compression Issue

Hi
I’ve upgraded an existing project from Unity 2019.1.3 to 2019.2.17.
After an upgrade I see a compile error:

The type name ‘ZipArchive’ could not be found in the namespace ‘System.IO.Compression’. This type has been forwarded to assembly ‘System.IO.Compression, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’ Consider adding a reference to that assembly.

I have hard time understanding what I’m soppoused to do. The assembly name is exactly the same, so it’s not like I need to update the ‘using’ in code.

Has anyone encounter and resolved this issue?

Ok, managed to solve the problem.

to solve it you need to create a csc.rsp in the Assets directory, and add a fallowing line in it:

-r:System.IO.Compression.dll
1 Like