I have recently used System.Xml in my project which makes the webplayer build 800KB bigger.
Now I have removed the use of System.Xml but in the Editor Log it still shows me the dependency and includes it into the build. I have deleted the content of the ScriptAssemblies folder, but also it didnt help.
I have searched in my whole project map for “using System.Xml” and wherever it is found it is commented out.
Whatelse can I try? Can I see from where unity gets the System.Xml (which script or object)?
For none of the System. dependencies I get a result when searching my scripts for it.
Also there is no object in my project view that makes use of System.Xml if that is of interest.
I guess it’s possible that Unity makes a note of which DLLs need to be added to a project, but then keeps that note even after the DLL references have been removed from the code. I’d recommend you e-mail support@unity3d.com about this. It might be useful to send along the project or a stripped-down version of it.
Are you guys still getting this problem? if so would you be able to send over a project in which you are experiencing this issue over to support@unity3d.com (uploading the project via ftp) or attach it to a bug report using the in editor bug reporting tool and let me know when it has been added.
Further to this after hacking around trying to figure out which dll’s were needed and which not using my method outlined above I found the following interesting thing.
If I make a 0 kb file for System.Core lock it and rebuild, then unlock it again and rebuild System.dll dissappears along with System.Xml, System.Security, and System.Configuration.
So System.Core seems to need a poke with a big stick to get it to play nice with the other dll’s
My web app shrank from 750Kb to 220Kb which is some saving!