You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I was frustrated when I upgraded my projects to .NET 10 and their dependency on EFCore 10, but this breaks with the Datasync packages with their EFCore on .NET 9
Describe the solution you'd like
Upgrade to .NET 10
After upgrading the MAUI app from .NET 9 to .NET 10 and EF Core to 10, the app now crashes at runtime when using CommunityToolkit.Datasync.Client with offline sync.
I get this error:
Method not found: string Microsoft.EntityFrameworkCore.Diagnostics.AbstractionsStrings.ArgumentIsEmpty(object)
Source: Microsoft.EntityFrameworkCore.Relational
at Microsoft.EntityFrameworkCore.RelationalEntityTypeBuilderExtensions.CanSetTable(...)
at Microsoft.EntityFrameworkCore.RelationalEntityTypeBuilderExtensions.ToTable(...)
...
at Microsoft.EntityFrameworkCore.DbContext.get_Model()
at CommunityToolkit.Datasync.Client.Offline.OperationsQueue.OperationsQueueManager.GetEntityMap(OfflineDbContext context) in /_/src/CommunityToolkit.Datasync.Client/Offline/OperationsQueue/OperationsQueueManager.cs:line 96
at CommunityToolkit.Datasync.Client.Offline.OperationsQueue.OperationsQueueManager..ctor(OfflineDbContext context) in /_/src/CommunityToolkit.Datasync.Client/Offline/OperationsQueue/OperationsQueueManager.cs:line 63
at CommunityToolkit.Datasync.Client.Offline.OfflineDbContext..ctor(DbContextOptions options) in /_/src/CommunityToolkit.Datasync.Client/Offline/OfflineDbContext.cs:line 136
...
This worked fine on .NET 9 with the previous EF Core version.
CommunityToolkit.Datasync.Server.OpenApi version 9.0.5 is also not compatible with ASP.NET Core 10. Using it throws the following exception:
Unhandled exception. System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types.
Method 'TransformAsync' in type 'CommunityToolkit.Datasync.Server.OpenApi.DatasyncOperationTransformer'
from assembly 'CommunityToolkit.Datasync.Server.OpenApi, Version=9.0.5.0, Culture=neutral, PublicKeyToken=null'
does not have an implementation.
at System.Reflection.RuntimeModule.GetDefinedTypes()
at Microsoft.AspNetCore.Mvc.Controllers.ControllerFeatureProvider.PopulateFeature(IEnumerable`1 parts, ControllerFeature feature)
at Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartManager.PopulateFeature[TFeature](TFeature feature)
at Microsoft.AspNetCore.Mvc.ApplicationModels.ControllerActionDescriptorProvider.GetControllerTypes()
at Microsoft.AspNetCore.Mvc.ApplicationModels.ControllerActionDescriptorProvider.GetDescriptors()
at Microsoft.AspNetCore.Mvc.ApplicationModels.ControllerActionDescriptorProvider.OnProvidersExecuting(ActionDescriptorProviderContext context)
at Microsoft.AspNetCore.Mvc.Infrastructure.DefaultActionDescriptorCollectionProvider.UpdateCollection()
at Microsoft.AspNetCore.Mvc.Infrastructure.DefaultActionDescriptorCollectionProvider.Initialize()
at Microsoft.AspNetCore.Mvc.Infrastructure.DefaultActionDescriptorCollectionProvider.GetChangeToken()
at Microsoft.Extensions.Primitives.ChangeToken.ChangeTokenRegistration`1..ctor(Func`1 changeTokenProducer, Action`1 changeTokenConsumer, TState state)
at Microsoft.Extensions.Primitives.ChangeToken.OnChange(Func`1 changeTokenProducer, Action changeTokenConsumer)
at Microsoft.AspNetCore.Mvc.Routing.ActionEndpointDataSourceBase.Subscribe()
at Microsoft.AspNetCore.Builder.ControllerEndpointRouteBuilderExtensions.GetOrCreateDataSource(IEndpointRouteBuilder endpoints)
at Microsoft.AspNetCore.Builder.ControllerEndpointRouteBuilderExtensions.MapControllers(IEndpointRouteBuilder endpoints)
...
System.TypeLoadException: Method 'TransformAsync' in type 'CommunityToolkit.Datasync.Server.OpenApi.DatasyncOperationTransformer'
from assembly 'CommunityToolkit.Datasync.Server.OpenApi, Version=9.0.5.0, Culture=neutral, PublicKeyToken=null'
does not have an implementation.
The cause of the issue is that the signature of Microsoft.AspNetCore.OpenApi.IOpenApiOperationTransformer.TransformAsync() changed in ASP.NET Core 10.
In ASP.NET Core 9, the signature was:
public System.Threading.Tasks.Task TransformAsync(Microsoft.OpenApi.Models.OpenApiOperation operation, Microsoft.AspNetCore.OpenApi.OpenApiOperationTransformerContext context, System.Threading.CancellationToken cancellationToken);
In ASP.NET Core 10, the signature is now:
public System.Threading.Tasks.Task TransformAsync(Microsoft.OpenApi.OpenApiOperation operation, Microsoft.AspNetCore.OpenApi.OpenApiOperationTransformerContext context, System.Threading.CancellationToken cancellationToken);
Notice that the OpenApiOperation class was moved from the Microsoft.OpenApi.Models namespace to the Microsoft.OpenApi namespace.
Activity
rahul7720 commentedon Nov 24, 2025
After upgrading the MAUI app from .NET 9 to .NET 10 and EF Core to 10, the app now crashes at runtime when using
CommunityToolkit.Datasync.Clientwith offline sync.I get this error:
This worked fine on .NET 9 with the previous EF Core version.
ramatah commentedon Nov 25, 2025
CommunityToolkit.Datasync.Server.OpenApiversion9.0.5is also not compatible with ASP.NET Core 10. Using it throws the following exception:The cause of the issue is that the signature of
Microsoft.AspNetCore.OpenApi.IOpenApiOperationTransformer.TransformAsync()changed in ASP.NET Core 10.Notice that the
OpenApiOperationclass was moved from theMicrosoft.OpenApi.Modelsnamespace to theMicrosoft.OpenApinamespace.adrianhall commentedon Dec 1, 2025
Planning on upgrading to dotnet 10 this week - stay tuned.
Note Datasync 9.x will NOT be compatible with dotnet 10 - there are known issues.
(CommunityToolkit#413) WIP: OpenApi support
(CommunityToolkit#413) WIP: dotnet 10 update.
(CommunityToolkit#413) WIP: OpenApi support
(CommunityToolkit#413) WIP: dotnet 10 update.
(CommunityToolkit#413) Revert back to EFCore 9.x
(CommunityToolkit#413) dotnet 10 (no efcore) support
(#413) dotnet 10 support (#418)
adrianhall commentedon Dec 4, 2025
Fixed via 949b368 #418