Page 1 of 1

Can't install latest nuget package

Posted: Fri 08 Sep 2017 12:44
by johanrex
I'm using VS2017 and .NET Core 2.0. I have downloaded and installed "dotConnect for Oracle 9.4 Professional Trial". After that I added the nuget package Devart.Data.Oracle 9.4.348 to a new console project. This is the output from the package manager:

Code: Select all

Restoring packages for c:\users\johrex\source\repos\devarttest\devarttest\devarttest.csproj...
Detected package downgrade: System.Reflection from 4.3.0 to 4.1.0. Reference the package directly from the project to select a different version. 
 devarttest (>= 1.0.0) -> Devart.Data.Oracle (>= 9.4.348) -> NETStandard.Library (>= 1.6.1) -> System.Reflection (>= 4.3.0) 
 devarttest (>= 1.0.0) -> Devart.Data.Oracle (>= 9.4.348) -> System.Reflection (>= 4.1.0)
Detected package downgrade: System.Security.Cryptography.Algorithms from 4.3.0 to 4.2.0. Reference the package directly from the project to select a different version. 
 devarttest (>= 1.0.0) -> Devart.Data.Oracle (>= 9.4.348) -> NETStandard.Library (>= 1.6.1) -> System.Security.Cryptography.Algorithms (>= 4.3.0) 
 devarttest (>= 1.0.0) -> Devart.Data.Oracle (>= 9.4.348) -> System.Security.Cryptography.Algorithms (>= 4.2.0)
Detected package downgrade: System.Reflection.Emit from 4.3.0 to 4.0.1. Reference the package directly from the project to select a different version. 
 devarttest (>= 1.0.0) -> Devart.Data.Oracle (>= 9.4.348) -> NETStandard.Library (>= 1.6.1) -> System.Linq.Expressions (>= 4.3.0) -> System.Reflection.Emit (>= 4.3.0) 
 devarttest (>= 1.0.0) -> Devart.Data.Oracle (>= 9.4.348) -> System.Reflection.Emit (>= 4.0.1)
Detected package downgrade: System.Reflection.Emit.ILGeneration from 4.3.0 to 4.0.1. Reference the package directly from the project to select a different version. 
 devarttest (>= 1.0.0) -> Devart.Data.Oracle (>= 9.4.348) -> NETStandard.Library (>= 1.6.1) -> System.Linq.Expressions (>= 4.3.0) -> System.Reflection.Emit.ILGeneration (>= 4.3.0) 
 devarttest (>= 1.0.0) -> Devart.Data.Oracle (>= 9.4.348) -> System.Reflection.Emit.ILGeneration (>= 4.0.1)
Detected package downgrade: System.Security.Cryptography.Csp from 4.3.0 to 4.0.0. Reference the package directly from the project to select a different version. 
 devarttest (>= 1.0.0) -> Devart.Data.Oracle (>= 9.4.348) -> NETStandard.Library (>= 1.6.1) -> System.Security.Cryptography.X509Certificates (>= 4.3.0) -> System.Security.Cryptography.Csp (>= 4.3.0) 
 devarttest (>= 1.0.0) -> Devart.Data.Oracle (>= 9.4.348) -> System.Security.Cryptography.Csp (>= 4.0.0)
Package restore failed. Rolling back package changes for 'devarttest'.
Time Elapsed: 00:00:10.4647678
========== Finished ==========
As you can see it has rolled back the package and not added the dependency. Why is that? Is it possible to use your dotConnect for Oracle on .NET Core 2 to talk to an Oracle 11/12 database?

Thanks

Re: Can't install latest nuget package

Posted: Mon 11 Sep 2017 15:16
by Shalex
1. dotConnect for Oracle v9.4.348 supports .NET Standard 1.3 (.NET Core 1.3). We will notify you when .NET Core 2.0 support is implemented. An approximate timeframe is one month.

2. We have reproduced the issue with references mismatch. As a workaround, right click project in Solution Explorer > Properties > Build > Treat warnings as errors > Specific warnings and remove NU1605 from the list.

Re: Can't install latest nuget package

Posted: Wed 13 Sep 2017 08:35
by johanrex
Great. I got it working by targeting .NET Core 1.1 on win 10.

Can I expect this to also work on linux? I.e. are there any platform specific code that need special attention?

Re: Can't install latest nuget package

Posted: Mon 30 Oct 2017 19:58
by Shalex
johanrex wrote:Can I expect this to also work on linux? I.e. are there any platform specific code that need special attention?
Yes, it should work, trial licensing on Linux: https://www.devart.com/dotconnect/oracl ... ndard.html.

.NET Core 2.0 is now supported: viewtopic.php?f=1&t=36128.