© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
1 reply
Ernoi

Sqlite package breaks maui app.

Im running a maui blazor hybrid project and added another repository project in the solution. In the repository project I have a package for system.data.sqlite. When I reference the repository project to maui i get an error when building saying "Error XAPRAS7009 System.InvalidOperationException: PE image does not have metadata." (full error message below). I have tried to google this but cant really wrap my head around what is wrong, Do I need to switch package or is there a fix?

Full error message

Severity Code Description Project File Line Suppression State
Error XAPRAS7009 System.InvalidOperationException: PE image does not have metadata.
at System.Reflection.PortableExecutable.PEReader.GetMetadataBlock()
at System.Reflection.Metadata.PEReaderExtensions.GetMetadataReader(PEReader peReader, MetadataReaderOptions options, MetadataStringDecoder utf8Decoder)
at Xamarin.Android.Tasks.ProcessAssemblies.DeduplicateAssemblies(List
1 output, Dictionary
1 output, Dictionary
2 symbols)
at Xamarin.Android.Tasks.ProcessAssemblies.RunTask()
at Microsoft.Android.Build.Tasks.AndroidTask.Execute() in /Users/runner/work/1/s/xamarin-android/external/xamarin-android-tools/src/Microsoft.Android.Build.BaseTasks/AndroidTask.cs:line 17 MauiBlazor C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\32.0.476\targets\Microsoft.Android.Sdk.AssemblyResolution.targets 98
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Connecting SQLite in MAUI
C#CC# / help
2y ago
SQLite connection in .net maui
C#CC# / help
2y ago
✅ Maui HelloWorld App
C#CC# / help
13mo ago
❔ Maui in app update
C#CC# / help
3y ago