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
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- The layout system is failing to correctly calculate or apply the height of the Japanese fallback font when the primary English font's metrics are used
Resolution Note (2021.2.X):
This is caused by a mismatch in the precompiled assemblies that are part of this project.