When building my app with .Net I get numerous compilation errors. When building my app with IL2CPP I get 0 build errors, how can this be? I’m using the Microsoft compiler both times. How am I able to build my app with the Microsoft Compiler (Use Net Core) and get no missing type errors whatsoever?
While that setting still makes Unity use Microsoft C# compiler when building scripts, it doesn’t change the fact that IL2CPP uses totally different .NET profile. When using .NET scripting backend, you’re using “.NET Core 5 for UWP”, which lacks many types in comparison to what Unity editor has available. When using IL2CPP scripting backend, you’re limited to what IL2CPP supports - and that today is the good old .NET 3.5 for desktop, the same one that Unity editor and all the other platforms use.
.Net Core 5 for UWP is a subset of the main .Net stuff. Are you saying that IL2CPP actually brings some APIs back that got taken out with .net core?
You could say so. IL2CPP uses exact same API surface as any other Unity platform - it’s not a subset of the main .NET stuff - you get the full thing.
Ok, thanks for the clarification.
