MixedRealityToolkit-Unity icon indicating copy to clipboard operation
MixedRealityToolkit-Unity copied to clipboard

SpatialMappingSource Build Warning

Open StephenHodgson opened this issue 8 years ago • 6 comments

Overview

When targeting .NET Scripting Backend and .NET Standard 2 using the Master Configuration, SpatialMappingSource throws a warning about a possible missing namespace.

C:\Program Files (x86)\MSBuild\15.0\.Net\.NetNative\15.0.24211\x86\ilc\IlcInternals.targets(936,5): warning : ILTransform_0003: Method '$MethodUtility.$Invoke6632(long, long*)' will always throw an exception due to the missing method 'Expression<Func<SpatialMappingSource>>.Update(Expression, IEnumerable<ParameterExpression>)'. There may have been a missing assembly.

StephenHodgson avatar May 24 '18 22:05 StephenHodgson

Method '$MethodUtility.$Invoke24574(long, long*)' will always throw an exception due to the missing method 'Expression<Func>.Update(Expression, IEnumerable)'. There may have been a missing assembly.

Any work around for this? I am attempting to create master build to upload to the store.

TChag avatar Jul 17 '18 13:07 TChag

@TChag, @StephenHodgson: do you still have this issue? I've been trying to fix this for a while now without any luck

waldobronchart avatar Aug 07 '18 00:08 waldobronchart

@waldobronchart I switched to IL2CPP to get around this issue.

TChag avatar Aug 07 '18 19:08 TChag

Any news on this? Unfortunately, using IL2CPP is not an option for us. Unity 2017.4.10f1.

polyramus avatar Sep 06 '18 19:09 polyramus

If the build fails with "Internal Compiler Error" or "Out Of Memory", then you can turn off optimization. Open Properties/Default.rd.xml and add the following lines after <Assembly Name="*Application*" Dynamic="Required All" />:

<Assembly Name="Assembly-CSharp" Dynamic="Required All" DoNotOptimize="true"/>
<Assembly Name="Assembly-CSharp-firstpass" Dynamic="Required All" DoNotOptimize="true"/>

waldobronchart avatar Oct 21 '18 20:10 waldobronchart

Code has been completely rearchitected. Please reopen if it occurs on current branches.

david-c-kline avatar Apr 03 '19 18:04 david-c-kline