Search Issue Tracker
Fixed in 5.6.0
Votes
12
Found in
5.3.0b5
Issue ID
742049
Regression
No
Windows Store: IL2CPP does not support plugins targeting .NET 4.0+ or referencing Windows Runtime
At this point in time, using IL2CPP scripting backend on Windows Store limits your assemblies to targeting up to .NET 3.5 (the same limit that applies to all other Unity platforms including the editor). Trying to use DLLs compiled against .NET 4.0 or higher or DLLs that reference .winmd files (i.e. Windows Runtime APIs) will cause build to fail by UnusedBytecodeStripper2.exe crashing with one of the following errors:
AssemblyResolutionException: Failed to resolve assembly: 'System.Runtime, Version=4.0.20.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
AssemblyResolutionException: Failed to resolve assembly: 'Windows, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null'
The only workaround is marking these plugins as not compatible with Windows Store IL2CPP scripting backend.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Fixing Message Loss in UMPE During Domain Reload
- The Editor freezes when ScheduleReadOnly of IJobParallelForTransform with dependency is used
- Text is truncated in the Inspector when the display scale is set to 150%
- CancellationTokenSource(<timeout>) has incorrect cancellation status when used in WebGL Player
- VFX property value names are cut off when properties with 'Arc' are viewed in the VFX Blackboard
IsmaeelShujat
Oct 12, 2017 11:32
exception Failed to resolve assembly: 'System.Runtime, Version=4.0.20.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
Not resolved in Unity5.6.2f1....
Please update...