Using Dotmim.Sync.Web.Client with .NET MAUI make error at build time
See original GitHub issueI am building .NET MAUI Preview 7 (Android and iOS) app. When I install Dotmim.Sync.Web.Client package it causes this error:
Error NETSDK1082 There was no runtime pack for Microsoft.AspNetCore.App available for the specified RuntimeIdentifier 'iossimulator-x64'. MAUIApp C:\Program Files\dotnet\sdk\6.0.100-preview.7.21379.14\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets 419
This is my .csproj file
<Project Sdk="Microsoft.NET.Sdk"><PropertyGroup>
<!-- iOS, Android-->
<TargetFrameworks>net6.0-ios;net6.0-android</TargetFrameworks>
<OutputType>Exe</OutputType>
<UseMaui>true</UseMaui>
<SingleProject>true</SingleProject>
<RootNamespace>MauiApp</RootNamespace>
<!-- Display name -->
<ApplicationTitle>MauiApp</ApplicationTitle>
<!-- App Identifier -->
<ApplicationId>com.companyname.MauiApp</ApplicationId>
<!-- Versions -->
<ApplicationVersion>1.0</ApplicationVersion>
<AndroidVersionCode>1</AndroidVersionCode>
</PropertyGroup>
<ItemGroup>
<!-- App Icon -->
<MauiImage
Include="Resources\appicon.svg"
ForegroundFile="Resources\appiconfg.svg"
IsAppIcon="true"
Color="#512BD4" />
<!-- Splash Screen -->
<MauiSplashScreen Include="Resources\appiconfg.svg" Color="#512BD4" />
<!-- Images -->
<MauiImage Include="Resources\Images\*" />
<!-- Custom Fonts -->
<MauiFont Include="Resources\Fonts\*" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Dotmim.Sync.Core" Version="0.8.0" />
<PackageReference Include="Dotmim.Sync.Web.Client" Version="0.8.0" />
</ItemGroup>
<PropertyGroup>
<RuntimeIdentifier Condition="$(TargetFramework.Contains('-ios'))">iossimulator-x64</RuntimeIdentifier>
<RuntimeIdentifiers Condition="$(TargetFramework.Contains('-android'))">android-arm;android-arm64;android-x86;android-x64</RuntimeIdentifiers>
<UseInterpreter Condition="$(TargetFramework.Contains('-android'))">False</UseInterpreter>
<EmbedAssembliesIntoApk>true</EmbedAssembliesIntoApk>
</PropertyGroup>
</Project>
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
Welcome to Dotmim.Sync — Dotmim.Sync 0.9.5 documentation
Sync (DMS) is a straightforward framework for syncing relational databases, developed on top of .Net Standard 2.0, available and ready to use within...
Read more >Does not sync and Dotmim.Sync.SyncException: Input ...
Hi, Please help! DMS does not sync if client database was created before fist sync attempt. All scenarios involves MySql server and SQLite...
Read more >Dotmim.Sync is throwing exception when synchronizing ...
Sync is throwing exception when synchronizing existing SQLite with SQL Server databases. Nothing in this code is specific to Maui. I've edited ...
Read more >Synchronize Databases with Only Five Lines of Code
DotMim.sync is a framework for synchronizing relational databases. It is a .NET Standard 2.0 library, which means it will run on multiple ...
Read more >Troubleshoot known issues - .NET MAUI
Learn about .NET MAUI known issues and troubleshooting you can do to resolve these issues.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I don’t have any clue on that 😃 As I said, we need to wait until MAUI is released to debug it
I’ve removed all unnecessary references from Dotmim.Sync.Core, but I still have some weird random errors. I still continue to investigate what happens here.
Until MAUI reaches a stable version, I’m not sure I will be able to make DMS compatible… Will keep you informed