EFCore.NamingConventions: 6.0.0-preview.3 stopped working with the release of .NET 6.0 RC1 yesterday
It was working through preview 7 just fine.
Here is the StackTrace
System.TypeLoadException: Method 'GetServiceProviderHashCode' in type 'ExtensionInfo' from assembly 'EFCore.NamingConventions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' does not have an implementation. at EFCore.NamingConventions.Internal.NamingConventionsOptionsExtension.get_Info() at Microsoft.EntityFrameworkCore.DbContextOptions.GetHashCode() at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd[TArg](TKey key, Func`3 valueFactory, TArg factoryArgument) at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.GetOrAdd(IDbContextOptions options, Boolean providerRequired) at Microsoft.EntityFrameworkCore.DbContext..ctor(DbContextOptions options)
Also reverting back to 5.x yields the same exception.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 2
- Comments: 18 (10 by maintainers)
Yeah, this is expected - I will be porting the extension to rc1 in the coming weeks…
@roji I get no credit for the PR that goes to our main man @ZvonimirMatic
@roji I created the pull request: https://github.com/efcore/EFCore.NamingConventions/pull/93
A couple of other changes needed to be made. I also updated the version of extension packages, I hope that’s all right. All the changes are listed in the PR.
Oops, sorry… Thanks @ZvonimirMatic !
Thanks @roji everything ran perfectly!
Release 6.0.0-rc.1, thanks @buvinghausen!
@buvinghausen note cd128bbd1342ec13e58137198463e5600ed43abb with some minor fixup to this PR.
EF Core changed the contract for the extensions: https://github.com/dotnet/efcore/issues/26022
Maybe it would be a good idea to upgrade to RC1 version of EF Core?