Search Issue Tracker
Won't Fix
Votes
0
Found in
2018.4
2019.4
2020.3
2021.1
2021.2
2021.2.0a6
Issue ID
1318152
Regression
No
Microsoft.Extensions.* features don't work on IL2CPP Windows Build
How to reproduce it:
1. Open the user's attached project 'New Unity Project.zip'
2. Load the 'test' scene
3. Go to Project Settings > Player > Other Settings and set Scripting Backend to IL2CPP
4. Build on Windows Standalone (File > Build Settings)
5. Observe the Build
Expected result: UI Text's text is changed to 'Microsoft.Extensions.Logging.Logger`1[NewBehaviourScript]'
Actual result: UI Text's text is not changed
Reproducible with: 2018.4.32f1, 2019.4.22f1, 2020.3.0f1, 2021.1.0b10, 2021.2.0a8
Notes:
- Not reproducible when Scripting Backend is Mono
- In 2021.1.0b10, 2021.2.0a8 cannot Build a project with IL2CPP Scripting Backend and errors in the Console Window appears:
Error: IL2CPP error for method 'System.String Microsoft.Extensions.Logging.ActivityExtensions::GetSpanId(System.Diagnostics.Activity)' in assembly '...\Temp\StagingArea\Data\Managed\Microsoft.Extensions.Logging.dll'
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
- Frame Debugger's Hierarchy is not navigable when connecting it to the project built with the Volumetric Fog
- The number of SetPass Calls is increasing when attaching the Frame Debugger to the Player
- Scrollbar briefly appears in the Package Manager during installation process even when the package list is too short to require scrolling
- Script resets to use the previous Skybox color when saving the Scene changes
- [2D] Sprite Library Editor window throws NullReferenceException error when entering Play Mode with Game View maximised
Resolution Note (2021.2.X):
This is caused by a mismatch in the precompiled assemblies that are part of this project.