Reputation: 51
Every time I try to implement Entity Framework Core (I tried SQL and SQLite) into a MAUI application, I get an error from VS2022:
DEP1600: The list of content files in the recipe file "****\win10-x64\MauiEfTest2.build.appxrecipe" is missing or malformed.
When I delete the file and rebuild the whole solution, this file is recreated and the build succeeds without any error message, but as soon as I try to run the application this error message reappears.
Before introducing the Entity Framework Core packages, the application compiled and ran just fine.
I use :
Upvotes: 1
Views: 2177
Reputation: 13863
There are some relative issues on installing Entity Framework Core related nuget.
You can follow them up by the following links:
Build error APPX1101 (.NET 6 WinUI 3 and Microsoft.EntityFramework.Tools).
EntityFrameworkCore install errors.
You can try the following workaround:
open your .csproj
and make the changes indicated below:
+ <PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="6.0.1" />
- <PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="6.0.1">
- <PrivateAssets>all</PrivateAssets>
- <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
- </PackageReference>
Refer: issuecomment-1006882973
Upvotes: 1