- Home /
Deploying with C# Library dependency
If I import a C# Library file into my unity code and use it (for example to communicate with a server running on Windows); will it still be able to run across all platforms (Android, iOS, Web) without any issues.
I know you can import the libraries; but i just want to make sure that I can build the app for multiple platforms without any issues if i import an external library made from C#.
I don't have the definitive answer. Here's my guess. If you are talking about .DLLs then the answer is no. If you are talking about C# code, then the answer is maybe. Due to sandboxing issues, what is available from .NET differs between the PC, Web, and the mobile platforms. Have you tried just compiling it for these platforms to see what happens?
It should but considering building an almost empty project is done in about 10s, why don't you try it?
All you need is one scene, one object and one script. Call a method from your dll in your script and print via GUI the result.
If it prints fine, your dll is imported. Genuinely, 1$$anonymous$$ work while you have been waiting 6h already.
Your answer
![](https://koobas.hobune.stream/wayback/20220613144039im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to get Scene Name in Edit Mode without #if UNITY_EDITOR 1 Answer
Why can't I build Web Player in Unity while I have no problems with building standalone versions? 2 Answers
First pass.dll error that I get whenever I open unity or press play 1 Answer
Can't build error - dll is not allowed to be included or could not be found. 3 Answers