MixedRealityToolkit-Unity: Unity UWP Build: Reference Rewriter found some errors

Overview

When Building Unity Project for UWP through the Mixed Reality Toolkit>Build Window, the build succeed, but some errors are displayed at the end :

Error: field System.Numerics.Vector3 Windows.Perception.People.HandMeshVertex::Position doesn’t exist in target framework. It is referenced from Microsoft.MixedReality.Toolkit.Providers.WindowsMixedReality.dll at System.Void Microsoft.MixedReality.Toolkit.WindowsMixedReality.Input.WindowsMixedRealityArticulatedHand::UpdateControllerData(UnityEngine.XR.WSA.Input.InteractionSourceState). Error: field System.Numerics.Vector3 Windows.Perception.People.HandMeshVertex::Position doesn’t exist in target framework. It is referenced from Microsoft.MixedReality.Toolkit.Providers.WindowsMixedReality.dll at System.Void Microsoft.MixedReality.Toolkit.WindowsMixedReality.Input.WindowsMixedRealityArticulatedHand::UpdateControllerData(UnityEngine.XR.WSA.Input.InteractionSourceState). Error: field System.Numerics.Vector3 Windows.Perception.People.HandMeshVertex::Normal doesn’t exist in target framework. It is referenced from Microsoft.MixedReality.Toolkit.Providers.WindowsMixedReality.dll at System.Void Microsoft.MixedReality.Toolkit.WindowsMixedReality.Input.WindowsMixedRealityArticulatedHand::UpdateControllerData(UnityEngine.XR.WSA.Input.InteractionSourceState). Error: field System.Numerics.Quaternion Windows.Perception.People.JointPose::Orientation doesn’t exist in target framework. It is referenced from Microsoft.MixedReality.Toolkit.Providers.WindowsMixedReality.dll at System.Void Microsoft.MixedReality.Toolkit.WindowsMixedReality.Input.WindowsMixedRealityArticulatedHand::UpdateControllerData(UnityEngine.XR.WSA.Input.InteractionSourceState). Error: field System.Numerics.Vector3 Windows.Perception.People.JointPose::Position doesn’t exist in target framework. It is referenced from Microsoft.MixedReality.Toolkit.Providers.WindowsMixedReality.dll at System.Void Microsoft.MixedReality.Toolkit.WindowsMixedReality.Input.WindowsMixedRealityArticulatedHand::UpdateControllerData(UnityEngine.XR.WSA.Input.InteractionSourceState). Error: field System.Numerics.Vector3 Windows.Perception.Spatial.SpatialRay::Origin doesn’t exist in target framework. It is referenced from Microsoft.MixedReality.Toolkit.Providers.WindowsMixedReality.dll at System.Void Microsoft.MixedReality.Toolkit.WindowsMixedReality.Input.WindowsMixedRealityEyeGazeDataProvider::Update(). Error: field System.Numerics.Vector3 Windows.Perception.Spatial.SpatialRay::Direction doesn’t exist in target framework. It is referenced from Microsoft.MixedReality.Toolkit.Providers.WindowsMixedReality.dll at System.Void Microsoft.MixedReality.Toolkit.WindowsMixedReality.Input.WindowsMixedRealityEyeGazeDataProvider::Update().

PostProcessWinRT:RunReferenceRewriter() (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/PostProcessWinRT.cs:1062) PostProcessWinRT:Process() (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/PostProcessWinRT.cs:217) UnityEditor.BuildPipeline:BuildPlayer(String[], String, BuildTarget, BuildOptions) Microsoft.MixedReality.Toolkit.Build.Editor.UnityPlayerBuildTools:BuildUnityPlayer(IBuildInfo) (at Assets/MixedRealityToolkit/Utilities/BuildAndDeploy/UnityPlayerBuildTools.cs:115) Microsoft.MixedReality.Toolkit.Build.Editor.<BuildPlayer>d__2:MoveNext() (at Assets/MixedRealityToolkit/Utilities/BuildAndDeploy/UwpPlayerBuildTools.cs:108) System.Runtime.CompilerServices.AsyncTaskMethodBuilder1:Start(<BuildPlayer>d__2&) Microsoft.MixedReality.Toolkit.Build.Editor.UwpPlayerBuildTools:BuildPlayer(UwpBuildInfo, CancellationToken) Microsoft.MixedReality.Toolkit.Build.Editor.<BuildPlayer>d__1:MoveNext() (at Assets/MixedRealityToolkit/Utilities/BuildAndDeploy/UwpPlayerBuildTools.cs:89) System.Runtime.CompilerServices.AsyncTaskMethodBuilder1:Start(<BuildPlayer>d__1&) Microsoft.MixedReality.Toolkit.Build.Editor.UwpPlayerBuildTools:BuildPlayer(String, Boolean, CancellationToken) Microsoft.MixedReality.Toolkit.Build.Editor.<BuildUnityProject>d__68:MoveNext() (at Assets/MixedRealityToolkit/Utilities/BuildAndDeploy/BuildDeployWindow.cs:1016) System.Runtime.CompilerServices.AsyncVoidMethodBuilder:Start(<BuildUnityProject>d__68&) Microsoft.MixedReality.Toolkit.Build.Editor.BuildDeployWindow:BuildUnityProject() UnityEditor.EditorApplication:Internal_CallDelayFunctions()

Expected Behavior

No errors

Actual Behavior

Build succeed but erros are displayed

Steps to reproduce

  • Create a Project, add MRTK v2RC1, switch to UWP platform, target Hololens x86, backend IL2CPP, Virtual Reality Supported
  • Open Mixed Reality Toolkit > Build Window
  • click on Build Unity Project

Unity Editor Version

2018.3.11f1

Mixed Reality Toolkit Release Version

v2.0.0 RC1

Visual Studio 2017 Microsoft SDK 10.0.18362

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 13
  • Comments: 19 (7 by maintainers)

Most upvoted comments

It was fixed. The fixes landed to 2019.3.0a6 and 2019.2.0b6 so far, and are on the way to 2019.1 and 2018.4 patches too.

These errors can actually be ignored. Good to leave this issue open for reference until it can be fixed, but we should add notes in getting started docs that these errors can be ignored.

Clearing the GA blocker tag on this.

We don’t have any control over this issue as it’s a Unity bug. We can certainly continue to push on Unity to get this fixed, but we cannot make any promises because we have no control over that code.