Closed RichardD2 closed 3 years ago
After replacing the conditional PackageReference
elements which reference either v2.1.0 or v3.0.0 with unconditional references to v3.1.1 and recompiling, the application works again.
NB: 3.1.0 reintroduced support for .NET Standard 2.0: https://github.com/dotnet/efcore/issues/18141
Hi ! Thank you for using EntityFrameworkCore.DataEncryption
and your feedback. I didn't knew that EFCore 3.1 had reintroduced support for .NET Standard 2.0; thank you for info!
Can you provide more information about what framework you are targeting (netstandard2.0
, netstandard2.1
) ?
It's an MVC5 app targetting .NET Framework 4.7.2.
I guess one of the best solutions as you said, would be to remove the conditionnal PackageReference
in the csproj
file and generate a new nuget package that targets only Microsoft.EntityFrameworkCore
>= 3.1.0.
In the mean time, maybe you can use version 1.0.1 that targets .NET Standard 2.0 and Microsoft.EntityFrameworkCore
>= 2.1.0.
Do you still have the error? Or can we close this issue?
I'm happy to close this now. :)
Trying to use this library with EF Core 3.1.1 in an ASP.NET MVC5 project produces an exception:
My
OnModelCreating
method is simply:The
IEncryptionProvider
is injected via DI:This works with EF Core 2.x.