Hi,
I’m using a C# plugin that makes use of System.IO.Packaging - specially ZipPackage:
This code does not compile in Unity as it seems this is not included in the .NET supplied with Unity. It looks like the System.IO.Packaging library is in the ‘WindowsBase.dll’ which I can see is part of the Unity .NET - I’m guessing its a variation that is missing the System.IO.Packaging library?
If I manually add a ‘WindowsBase.dll’ to my Unity project (a specific version that seems to be supplied with .NET 2.0 and is a much smaller version at 80kb compared with Unity’s 158Kb version) everytihng seems to compile and work in the Unity editor which is awesome - it unzips the file successfully and I can read the data I want.
However, the same code in build seems to fail. I can see the correct version of the ‘WindowsBase.dll’ is included in the ‘Managed’ folder but an exception is raised on the unzip line. Maybe there is some other dependency that is missing once the build is made? Any ideas on how I would try to debug why build is failing to unzip? Maybe a conflict between using .NET 2.0 and NET 4.0?
Thanks, Jake