- Home /
Error building Player: Extracting referenced dlls failed.
I added some DLLs to my assets/plugins folder and I use them in my code.
The code works fine and the DLLs work when I play the game inside the editor.
But as soon as I compile the build into a standalone version I get this error
Error building Player: Extracting referenced dlls failed.
anyone have an idea on how to fix that.
The DLLs are only compatible for windows, but that is ok because Its for a special purpose program that will only ever be run on a windows platform.
I am building it with the target platform being windows.
I am also facing the same issue got error after changing the compatibility from ".net 2.0 subset" to ".net 2.0" Error building Player: SystemException: 'System.Net.Sockets' are supported only with Unity Android Pro. Referenced from assembly '$$anonymous$$ono.Data.Tds'.
Answer by michael 4 · May 17, 2011 at 11:58 PM
turns out Edit > Project Settings > Player > Optimization
change compatibility from ".net 2.0 subset" to ".net 2.0"
Thank you. I had this issue while trying to use System.Data for $$anonymous$$ono.Data.Sqlite.
I am also facing the same issue got error after changing the compatibility from ".net 2.0 subset" to ".net 2.0" Error building Player: SystemException: 'System.Net.Sockets' are supported only with Unity Android Pro. Referenced from assembly '$$anonymous$$ono.Data.Tds'.
Thank you God I had the same problem as XaeroDegreaz. You truly are a hero
Answer by Mike 3 · May 17, 2011 at 09:53 PM
Very often if you're playing right before building, it'll lock the dlls, making it difficult to move them into the build.
If that happens, just relaunch unity and build again, without hitting play
Thanks for the reply, but unfortuantly I'm am still getting the error, I even tried restarting my computer and immediately trying to build.
I am having this issue but I am already set to .net 2.0
Any other suggestions?
Answer by landskron · Sep 19, 2013 at 11:30 PM
Perfect! Changing ".net 2.0 subset" to ".net 2.0" in Edit > Project Settings > Player > Optimization.
Answer by Kehos · Aug 14, 2012 at 07:51 PM
I have the same problem, I added the Database dll's and it doesn't build and say me the same error when I try to build.
I have set the compatibility to ".net 2.0" too
Answer by laghziltarek · Jan 06, 2015 at 11:56 AM
Perfect! Changing ".net 2.0 subset" to ".net 2.0" in Edit > Project Settings > Player > Optimization. but i've this error after Error building Player: SystemException: 'System.Net.Sockets' are supported only with Unity Android Pro. Referenced from assembly 'Mono.Data.Tds'.
If only the error message told you the problem, and the solution...