question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using Dotmim.Sync.Web.Client with .NET MAUI make error at build time

See original GitHub issue

I 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:closed
  • Created 2 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Mimetiscommented, Mar 9, 2022

I don’t have any clue on that 😃 As I said, we need to wait until MAUI is released to debug it

1reaction
Mimetiscommented, Feb 17, 2022

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found