I've been trying to compile my UWP application for several days now with .Net Native but always fail with error ILT0005.
Has anyone experienced this?
Build output:
5> Starting .NET Native compilation
5>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(1540,5): warning : Assembly 'Autofac' requests the address of the virtual method 'Type.IsAssignableFrom(Type)' which is not available in the targeted .NET platform. Please
ask the author of 'Autofac' to provide an implementation that can be used in the currently targeted .NET platform.
5> Processing application code
5>C:\tfs\Infocore Solutions\MyApp\Apps\MyApp.Universal\Resources.System.Linq.Expressions.rd.xml(35): warning : Method 'CreateLambda' within 'System.Linq.Expressions.Expression' could not be found.
5>C:\tfs\Infocore Solutions\MyApp\Apps\MyApp.Universal\Resources.System.Linq.Expressions.rd.xml(91): warning : Method 'ParameterIsAssignable' within 'System.Linq.Expressions.Expression' could not be found.
5> Computing application closure and generating interop code
5> Generating serialization code
5> Compiling interop code
5>C:\tfs\Infocore Solutions\MyApp\Apps\MyApp.Universal\sg.exe : warning : SG0002 : Cannot generate serialization code for type 'System.ServiceModel.FaultException+FaultCodeData'
5>C:\tfs\Infocore Solutions\MyApp\Apps\MyApp.Universal\sg.exe : warning : SG0002 : Cannot generate serialization code for type 'System.ServiceModel.FaultException'
5>C:\tfs\Infocore Solutions\MyApp\Apps\MyApp.Universal\sg.exe : warning : SG0002 : Cannot generate serialization code for type 'System.ServiceModel.FaultException+FaultReasonData'
5>C:\tfs\Infocore Solutions\MyApp\Apps\MyApp.Universal\sg.exe : warning : SG0002 : Cannot generate serialization code for type 'System.ServiceModel.FaultException+FaultCodeData'
5>C:\tfs\Infocore Solutions\MyApp\Apps\MyApp.Universal\sg.exe : warning : SG0002 : Cannot generate serialization code for type 'System.ServiceModel.FaultException'
5>C:\tfs\Infocore Solutions\MyApp\Apps\MyApp.Universal\sg.exe : warning : SG0002 : Cannot generate serialization code for type 'System.ServiceModel.FaultException+FaultReasonData'
5> Cleaning up unreferenced code
5> Generating native code
5>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(1129,5): error : ILT0005: 'C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\Tools\nutc_driver.exe @"C:\tfs\Infocore Solutions\MyApp\Apps\MyApp.Universal\obj\ARM\Release\ilc\intermediate\MDIL\Minimal.rsp"'
returned exit code -1073740791
========== Build: 4 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========
Some things I've tried:
1. Compile clean app, Works!
2. Compile clean app with Autofac (since it warns about it) installed, Works!
Also, I have no references to System.ServiceModel as far as I know so don't really understand why those warnings appear.
Running Visual Studio 2015 Update 1 on Windows 10 Pro build 11082
Edited byViktor BergmanSaturday, December 19, 2015 3:33 PM