Reputation: 65
I develop UWP application using Xamarin. I have a compilation problem with .NET
native tool chain. When I check the flag "Compile with .NET Native tool chain"
, I get an error in runtime on "Xamarin.Init"
method:
"Exception thrown: 'System.IO.FileNotFoundException' in System.Private.Reflection.Core.dll
Additional information: FileNotFound_AssemblyNotFound, ClrCompression. For more information, visit http://go.microsoft.com/fwlink/?LinkId=623485"
And the next one:
"Exception thrown: 'System.IO.FileNotFoundException' in System.Private.Reflection.Core.dll
Additional information: FileNotFound_AssemblyNotFound, sqlite3. For more information, visit http://go.microsoft.com/fwlink/?LinkId=623485"
I added SqLite
assembly, according to advice from here
List<Assembly> assembliesToInclude = new List<Assembly>();
var assembly = typeof(SQLitePlatformWinRT).GetTypeInfo().Assembly;
assembliesToInclude.Add(assembly);
//throws error there
Xamarin.Forms.Forms.Init(e, assembliesToInclude);
My references:
Does anyone know what the problem is?
Upvotes: 1
Views: 763
Reputation: 65
The solution was added assemblies from my solution. You have to add all of the assemblies from solution. See this link:
Try add assemblies from solution.
List<Assembly> assembliesToInclude = new List<Assembly>();
assembliesToInclude.Add(typeof(<a class from assembly>).GetTypeInfo().Assembly);
Xamarin.Forms.Forms.Init(e, assembliesToInclude);
Upvotes: 0