Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Getting csc.rsp to work?

Discussion in 'Scripting' started by mathias_unity633, Sep 20, 2019.

  1. mathias_unity633

    mathias_unity633

    Joined:
    Jul 17, 2018
    Posts:
    35
    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:
    Code (CSharp):
    1. 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
     
    Pawciu likes this.
  2. palex-nx

    palex-nx

    Joined:
    Jul 23, 2018
    Posts:
    1,748
    Afaik, it requires namespace or type name, not assembly?
     
  3. mathias_unity633

    mathias_unity633

    Joined:
    Jul 17, 2018
    Posts:
    35
  4. Pawciu

    Pawciu

    Joined:
    Jun 21, 2015
    Posts:
    16