Page 1 of 1

Cannot install package for EF6

Posted: Thu 14 Nov 2019 18:36
by glittle
In Visual Studio 2019, I created a simple console app targeting .NET Framework 4.8.

Using package manager, I installed "EntityFramework" (version 6.3.0) and "Devart.Data.Oracle" (version 9.9.872).

However, when trying to install "Devart.Data.Oracle.EF6", I get an error:
"Could not install package 'Devart.Data.Oracle.EF6 9.9.872'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.8', but the package does not contain any assembly references or content files that are compatible with that framework."
Is there any good reason why the EF6 package will only support .NET Standard 2.1? That eliminates all .NET Framework code!

As a library, you should target the lowest .NET Standard that you can!

In nuGet, you have "Devart.Data.Oracle.EF6" and "Devart.Data.Oracle.EFCore". But the EF6 version is effectively unusable since no one using EF6 can actually use that package!

Changing existing systems from .NET Framework to .NET Core, just to be able to use the EF6 package. is not a viable option.

Re: Cannot install package for EF6

Posted: Thu 14 Nov 2019 19:05
by glittle
If you want to keep .NET Standard 2.1 as the target, could you at least also produce a version that targets .NET Standard 2.0?

Re: Cannot install package for EF6

Posted: Fri 15 Nov 2019 14:43
by Shalex
1. With .NET Framework 4.8, please use assemblies shipped with the provider installation: "C:\Program Files (x86)\Devart\dotConnect\Oracle\".

2. EF 6.3 is supported by .NET Standard starting from v2.1.

Re: Cannot install package for EF6

Posted: Fri 15 Nov 2019 18:06
by glittle
EF 6.3 is supported by .NET Standard starting from v2.1
However, .NET Framework 4.x does not support v2.1, so no .NET Framework application can use it.

Again, as a library, you should aim as low as you can. If you could support .NET Standard 2.0, then all .NET Framework 4.8 applications could use it.

Re: Cannot install package for EF6

Posted: Mon 18 Nov 2019 11:54
by Shalex
The current implementation of dotConnect for Oracle includes two sets of assemblies:

1) the .NET Framework Devart.* assemblies which are shipped with installation:
* assemblies are created in C:\Program Files (x86)\Devart\dotConnect\Oracle\ , GAC 2.0 (C:\Windows\assembly\GAC_MSIL\), GAC 4.0 (C:\Windows\Microsoft.NET\assembly\GAC_MSIL\)
* licensing approach is described at https://www.devart.com/dotconnect/oracl ... nsing.html

2) the .NET Standard (.NET Core) Devart.* assemblies which are available via NuGet:
* you can download packages from https://www.nuget.org/packages/devart.data.oracle.ef6
* licensing approach is described at https://www.devart.com/dotconnect/oracl ... ndard.html
Again, as a library, you should aim as low as you can. If you could support .NET Standard 2.0, then all .NET Framework 4.8 applications could use it.
.NET Standard 2.1 is the only .NET Standard version with EF 6.3 support (https://www.nuget.org/packages/EntityFramework/6.3.0 > the Dependencies section).
We do not have a technical possibility to support EF 6.3 in .NET Standard 2.0 assemblies, because .NET Standard 2.0 itself doesn't include EF 6.3 implementation.

The .NET Framework Devart.* assemblies are currently not available via NuGet.

Re: Cannot install package for EF6

Posted: Fri 13 Dec 2019 03:35
by glittle
Here's a paragraph from the Entity Framework Core 3.1 announcement:
EF Core 3.1 reintroduces support for .NET Standard 2.0, rather than requiring .NET Standard 2.1 as was the case for EF Core 3.0. This means EF Core 3.1 will run on .NET Framework versions that support the standard.
Please consider supporting .NET Standard 2.0 for DevArt libraries too!

Re: Cannot install package for EF6

Posted: Fri 13 Dec 2019 18:30
by Shalex
https://www.nuget.org/packages/Microsof ... Core/3.1.0 depends on .NET Standard 2.0. We will notify you when EF Core 3.1 is supported by dotConnect for Oracle.

https://www.nuget.org/packages/EntityFramework/6.4.0 works with .NET Standard 2.1 only. Refer to the Dependencies section of the package.

Re: Cannot install package for EF6

Posted: Tue 24 Dec 2019 17:40
by Shalex
Entity Framework Core 3.1 is supported: viewtopic.php?f=1&t=39716.