Search Issue Tracker

Fixed in Unity 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

Windows Store Apps

-

-

Priority: 2Necessary for shipping a final release

-

Severity: 2Core functionality majorly impacted

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.