Hello , we tried to upgrade a winform App (.NET 4.7.2) using Pomelo.EntityFrameworkCore.MySql v2.2.6 to v3.0.1 and we got the following error.
Error NU1202 Package Pomelo.EntityFrameworkCore.MySql 3.0.1 is not compatible with net472 (.NETFramework,Version=v4.7.2) / win-x86. Package Pomelo.EntityFrameworkCore.MySql 3.0.1 supports: netstandard2.1 (.NETStandard,Version=v2.1)
we use also Microsoft.EntityFrameworkCore.SqlServer v3.1 without any issues
is there any limitation in pomelo mysql 3.0.1 when we use it on winforms targeting .net because when we use it on winforms targeting dotnetcore v3.0.1 is working fine.
As you wrote, Pomelo 3.0.1 targets .NET Standard 2.1. This is simply because Pomelo 3.0.1 is compatible with EF Core 3.0.1, which also targets .NET Standard 2.1.
You are using .NET Framework 4.7.2, which implements .NET Standard 2.0.
For EF Core 3.1.0 the design team made the decision to downgrade the targeted .NET Standard to 2.0. Pomelo 3.1.0 is therefore going to target .NET Standard 2.0 as well.
A Pomelo 3.1.0 prerelease is scheduled to be available on NuGet within the next 24 hours.
Most helpful comment
As you wrote, Pomelo
3.0.1targets .NET Standard 2.1. This is simply because Pomelo3.0.1is compatible with EF Core3.0.1, which also targets .NET Standard 2.1.You are using .NET Framework 4.7.2, which implements .NET Standard 2.0.
For EF Core
3.1.0the design team made the decision to downgrade the targeted .NET Standard to 2.0. Pomelo3.1.0is therefore going to target .NET Standard 2.0 as well.A Pomelo
3.1.0prerelease is scheduled to be available on NuGet within the next 24 hours.