I am Using Unity 2017.4.12f1 and Visual Studio 2017 to build windows WMR app. I searched on internet not able to find solution for Could not resolve method. But by removing
<Assembly Name="*Application*" Dynamic="Required All" />
in Default.rd.xml it some how removed second error. I don't know is it proper way. But still mentioning the second error.
Errors in Visual studio.
Error ILT0021: Could not resolve method 'System.IntPtr System.Func<System.IntPtr, System.IntPtr, System.IntPtr>.Invoke(System.IntPtr, System.IntPtr)'
Error Method '$MethodUtility.$Invoke7328(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.
The build works properly without Compile with .NET native tool chain disabled but Fails WACK test with uwphost.dll API unsupported.
-
API ExecuteAssembly in uwphost.dll is not supported for this application type. Crow The Legend.exe calls this API.
-
API DllGetActivationFactory in uwphost.dll is not supported for this application type. Crow The Legend.exe has an export that forwards to this API.
Question: How to resolve this error? Error is not pointing exactly in script where it is happening. I tried changing. Target Windows10 versions, no success yet.