- Home /
Question by
FlorentAlbyon · Aug 05, 2020 at 02:59 PM ·
c#.net
How can i use ZipFile in unity 2019.4 LTS
I need my application to zip a folder. I know C# offers the ZipFile class in System.IO.Compression. However i get a compilation error that "error CS0103: The name 'ZipFile' does not exist in the current context" even tho i have using System.IO.Compression Why is that, and how can i get ZipFile to work?
Comment
Answer by unity_Fx1KU-cvrhuugw · Feb 15 at 11:31 PM
I was able to make this work just now because I had to do it myself.
Create a text file called "csc.rsp" and place in the base Assets folder
Add this as the text content of that file:
/r:System.IO.Compression.FileSystem.dll /r:System.IO.Compression.ZipFile.dll
Let me know if that works. Cheers.