- Home /
Why is there an option to choose full or subset .Net 2.0 library ?
Recently when I experimented with named pipes for the first time, I recognized that the namespace System.IO.Pipes wasn't recognized by VS for Unity, so I had to change the Api Compatibility Level from subset .Net 2.0 to full .Net 2.0. Just out of curiosity: Why is using the full version causing bigger file size as stated here: https://docs.unity3d.com/Manual/class-PlayerSettingsAndroid.html
Isn't using the full version not just given access to more namespaces? So as long as you don't use them nothing should change (except maybe longer compling time)? I actually compiled a small program with subset and with full set, and the file size were exactly equal. So my question is: What is even the point of having the option to choose? If you don't use any of the additional capabilities it won't change anything so why not having the full version available all the time?
Answer by hexagonius · Jan 03, 2017 at 10:17 AM
I'd say it has to do with them being compiled into a DLL each, which can only be used as a whole. did you make use of any .NET stuff in your test project, because it might not even include either of them.
I actually used System and System.Collections.Generic. So yes, I used some .Net stuff. If different DLLs get included according to the chosen option than the file sizes should be different, right?
Your answer
![](https://koobas.hobune.stream/wayback/20220612103946im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Including Google Apis to Unity .Net and C# 0 Answers
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
How to create a library from my C# project that runs on Android 1 Answer
Including a DLL in unity? 1 Answer