Search Issue Tracker
Fixed in 5.4.2
Votes
1
Found in
5.4.0f3
Issue ID
827446
Regression
Yes
[WSA][UWP] Building script which has nested generic class causes reference rewriter errors
Steps to reproduce:
1. Open attached project
2. Build it to UWP or WSA
3. Notice Reference rewriter errors in console
Reference rewriter: Error: method `System.Void TestNamespace.TestBug`1/EInner<System.Int32>::Unity_Serialize(System.Int32)` doesn't exist in target framework. It is referenced from Assembly-CSharp.dll at System.Void TestNamespace.Test::Unity_Serialize(System.Int32).
UnityEngine.Debug:LogError(Object)
PostProcessWinRT:RunReferenceRewriter() (at C:/buildslave/unity/build/PlatformDependent/WinRT/SharedSources/CSharp/PostProcessWinRT.cs:573)
PostProcessWinRT:Process() (at C:/buildslave/unity/build/PlatformDependent/WinRT/SharedSources/CSharp/PostProcessWinRT.cs:126)
UnityEditor.PostprocessBuildPlayer:Postprocess(BuildTarget, String, String, String, Int32, Int32, String, String, BuildOptions, RuntimeClassRegistry, BuildReport)
Reference rewriter: Error: method `System.Void TestNamespace.TestBug`1/EInner<System.Int32>::Unity_Deserialize(System.Int32)` doesn't exist in target framework. It is referenced from Assembly-CSharp.dll at System.Void TestNamespace.Test::Unity_Deserialize(System.Int32).
UnityEngine.Debug:LogError(Object)
PostProcessWinRT:RunReferenceRewriter() (at C:/buildslave/unity/build/PlatformDependent/WinRT/SharedSources/CSharp/PostProcessWinRT.cs:573)
PostProcessWinRT:Process() (at C:/buildslave/unity/build/PlatformDependent/WinRT/SharedSources/CSharp/PostProcessWinRT.cs:126)
UnityEditor.PostprocessBuildPlayer:Postprocess(BuildTarget, String, String, String, Int32, Int32, String, String, BuildOptions, RuntimeClassRegistry, BuildReport)
Etc...
Reproduced with: 5.4.0p4, 5.5.0b2
Not reproducible: 5.3.6p4
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- SystemInfo.get_graphicsDeviceName() is generating garbage GC Alloc when using Metal graphics API
- Crash on D3D12CommonShader::ApplyGpuProgram when attaching material which samples "_UnityFBInput0" to "Full Screen Pass Renderer Feature" Component
- SpeedTree meshes and objects count differs when comparing the numbers in the Player with the Editor
- Model and Prefab Preview icons are not updated after upgrading associated Materials to URP
- Game view is rendered white when viewing the Editor with HDR display and Post Proccesing is enabled on the Main Camera with 2D URP
Add comment