Hi All,
We are trying to make one UWP build targeted for PC with latest installed SDK.
We are able to make solution file, but having trouble making app package.(may be some settings need to be changed)
I am adding all our test cases. Any leads on this will be helpful.
We are basically stuck in between .Net Native Compile tool chain, Optimize code and Default.rd.XML.
Just to add on this, we do have couple of third party dll’s in our project like Newtonsoft.Json, DOTween, Smart-Fox etc…
Case 1:
If .Net Native and optimize code both are checked, we get following errors:
1>MSBuild\15.0.Net.NetNative\15.0.24211\x64\ilc\IlcInternals.targets(1192,5): error : Method ‘PropertyDispatcherFactory.Accessor(PropertyInfo, SetOrGet)’ will always throw an exception due to the missing method ‘PropertyInfo.GetSetMethod(bool)’. There may have been a missing assembly.
1> Method ‘SliceDispatcherFactory.CreateSetter(MemberInfo)’ will always throw an exception due to the missing method ‘PropertyInfo.GetSetMethod(bool)’. There may have been a missing assembly.
1>error : Method ‘SliceDispatcherFactory.d__f.MoveNext()’ will always throw an exception due to the missing method ‘PropertyInfo.GetSetMethod(bool)’. There may have been a missing assembly.
1> Method ‘ExtensionRegistry.AddExtensionMembers(List, Type)’ will always throw an exception due to the missing method ‘Type.GetMembers(BindingFlags)’. There may have been a missing assembly.
1> error : ILT0005: ‘C:\Program Files (x86)\MSBuild\15.0.Net.NetNative\15.0.24211\x64\ilc\Tools\nutc_driver.exe @“C:\FOlder\obj\x64\Master\ilc\intermediate\MDIL\App.rsp”’ returned exit code 1
Case 2:
.Net Native unchecked.
We tried this options first, just to check if build runs. Although I read .Net Native compile tool chain has to be checked in order to submit to the app store.
Am I right?
Anyways build did ran, but failed WACK Test with the following errors:
Error Found: The supported APIs test detected the following errors:
API ExecuteAssembly in uwphost.dll is not supported for this application type. App.exe calls this API.
API DllGetActivationFactory in uwphost.dll is not supported for this application type. App.exe has an export that forwards to this API.
Case 3:
Later we tried with .NetNative checked and unchecking optimize code
Build was successful, but WACK again failed this time with following errors:
Supported APIs
Error Found: The supported APIs test detected the following errors:
API CoCreateInstance in api-ms-win-core-com-l1-1-0.dll is not supported for this application type. SoD.dll calls this API.
For the 3rd Case:
We tried searching on some forums found this link:
__Issues · dotnet/efcore · GitHub
But then again could really came to pinpoint which library or assembly is causing the issue.
Following link showed the guy had the issue with Newtonsoft.Json and mentionning he unchecked optimized code and excluded the assembly from Default.rd.xml.
__https://forums.xamarin.com/discussion/70305/uwp-and-azuremobileservice-offline-sqlite-sync-problem-when-building-with-net-native-toolchain-on__
So I tried adding our Libraries like this:
We also tried updating .Net Native through NuGet!
Is there anything we might be missing?
Any help is appreciated!
Thanks in Advance
Deepesh