Getting csc.rsp to work?

I need to handle .zip files.
For this I need to include the System.IO.Compression.FileSystem assembly.
To do this, apparently you need to create a file called ‘csc.rsp’ and put it directly under the ‘Assets’ folder of your project.
Then you write this into the file:
-r:System.IO.Compression.FileSystem.dll

I did this, but I’m still getting:

CS0234: The type or namespace name 'FileSystem' does not exist in the namespace 'System.IO.Compression' (are you missing an assembly reference?)

I was following this thread
Apparently for the OP it worked to clear the ‘Library’ folder. It did not work for me.

Any suggestions? Sorry if this is the wrong section.

Unity version: 2018.4.8f1
Scripting Runtime Version: .NET 4.x Equivalent
Scripting Backend: IL2CPP
API Compatibility Level: .NET 4.x

1 Like

Afaik, it requires namespace or type name, not assembly?

https://docs.unity3d.com/Manual/dotnetProfileAssemblies.html

The documentation mentions assemblies, System.IO.Compression.FileSystem is an assembly.

I had similar problem.
Solved it by passing additional parameter to compiler which I described here: