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
- URP Realtime reflection probes do not update when RenderProbe() is being called once per second
- Addressable terrain shader variants are stripped from the Player
- [iOS] Debug.Log() appears as <private> in Console app
- UI stays in the background when it is disabled in simulator
- A wrong log file is attached when project is launched with a "-logFile" command line argument
Resolution Note (2021.2.X):
This is caused by a mismatch in the precompiled assemblies that are part of this project.