- Create in a Visual Studio 2017 a blank UWP app
- Install NuGet package Microsoft.Net.Native.Compiler 2.0.2 (tested at 2.0.0 and 2.0.1 too)
- Switch to Release mode, where option "Compile with .NET Native tool chain" is turned on
- Try to run the app
Error: Internal compiler error: Could not load assembly '\App1\obj\x86\Release\ilc\in\System.Data.dll\System.Data.dll'
caused by line 731 in C:\Users\User.nuget\packages\microsoft.net.native.compiler\2.0.2\tools\Microsoft.NetNative.targets
Additional info:
- By default a blank UWP app creates with NuGet package Microsoft.NETCore.UniversalWindowsPlatform version 6.0.4 and the latest one is 6.0.5. I tried with both versions.
- Tried to skip this problematic task commenting it in Microsoft.NetNative.targets file. The original problem has gone, but another problems appeared, so I stopped moving in this direction.
- I see that Stack Overflow already has issues with System.Data.dll, but I wasn't able to find relevant to my case.