Since upgrading from HoloToolkit to Mixed Reality Toolkit, I am unable to build for hololens. The error unity throws is:
Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'Windows.Foundation.UniversalApiContract, Version=8.0.0.0, Culture=neutral, PublicKeyToken=null'
at Mono.Cecil.BaseAssemblyResolver.Resolve(AssemblyNameReference name, ReaderParameters parameters)
at Burst.Compiler.IL.AssemblyLoader.Resolve(AssemblyNameReference name)
at Burst.Bcl.BclApp.LoadAllAssemblyReferences(AssemblyDefinition asmDef, Dictionary2 visited)
at Burst.Bcl.BclApp.LoadAllAssemblyReferences(AssemblyDefinition asmDef, Dictionary2 visited)
at Burst.Bcl.BclApp.FindExecuteMethods(List`1 rootAssemblyPaths)
at Burst.Bcl.BclApp.GetMethodsToCompile()
at Burst.Bcl.Program.Main(String[] args)
The scene itself is mostly empty, containing only the required gameobjects for MRTK (Directional Light, MixedRealityToolkit and MixedRealityPlayspace, which has the Main Camera as child.) Building a test scene from the MRTK works fine, so it must have something to do with our project.
Unity version 2019.2.6, SDK version 10.0.18362.0