googleapis / dotnet-spanner-entity-framework

Apache License 2.0
22 stars 12 forks source link

When will you target .net 8? #386

Open jhammetts opened 3 months ago

jhammetts commented 3 months ago

We use the Google.Cloud.EntityFrameworkCore.Spanner library in our .net 6 application. We are upgrading to use .net 8 given that .net 6 will no longer be supported by MS after Nov 2024. However, we're encountering a runtime error from our DbContext constructor with the spanner provider that is not present when we run with .net 6:

Method 'FindMapping' in type 'Google.Cloud.EntityFrameworkCore.Spanner.Storage.Internal.SpannerTypeMappingSource' from assembly 'Google.Cloud.EntityFrameworkCore.Spanner, Version=2.1.3.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.

We are also wary about having a dependency on a library that targets a version of .net that will be out of support soon.

Do you expect to update the EF provider for spanner to target .net 8 soon?

ANIZA15 commented 2 weeks ago

I am currently experiencing the same phenomenon myself. I would like to see a successful net8.0 dependency package rolled out as soon as possible.

olavloite commented 1 week ago

Note that there are two relevant things related to this:

  1. Target .NET 8. That is relatively straightforward.
  2. Target Entity Framework 8, as Entity Framework 6 also goes out of support in Nov 2024 (see https://learn.microsoft.com/en-us/ef/core/what-is-new/)