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
- [Mobile] Developer Console does not appear when an error is thrown
- [HDRP] Game view renders artifacts when Camera's Component "Post Anti-aliasing" is set to "TAA" and Dynamic Resolution's "Forced Screen Percentage" is changed
- A deactivated Prefab's name color becomes white when a GameObject in the scene is deactivated
- The Game view becomes blank when using Frame Debugger with MSAA and Texture binding enabled in Play Mode
- NullReferenceException is thrown when changing the Inspector preview selection
Resolution Note (2021.2.X):
This is caused by a mismatch in the precompiled assemblies that are part of this project.