SD.LLBLGen.Pro.DQE.OracleODPNet nuget package does not contain netstandard2.0 lib

Posts   
 
    
harmen
User
Posts: 47
Joined: 22-Jun-2007
# Posted on: 26-Nov-2018 17:38:03   

Shouldn't the SD.LLBLGen.Pro.DQE.OracleODPNet nuget package contain the netstandard2.0 lib? In the latest stable version (5.5.0) it only contains the net452 lib.

There is a netstandard2.0 version present in the program files folder (C:\Program Files (x86)\Solutions Design\LLBLGen Pro v5.5\Frameworks\LLBLGen Pro\RuntimeLibraries\CompiledRuntimeLibraries\Netstandard2.0\SD.LLBLGen.Pro.DQE.OracleODPNet.dll).

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 26-Nov-2018 22:52:00   
harmen
User
Posts: 47
Joined: 22-Jun-2007
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39613
Joined: 17-Aug-2003
# Posted on: 27-Nov-2018 11:20:23   

Bug in the nuspec file. We'll fix it.

Frans Bouma | Lead developer LLBLGen Pro
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39613
Joined: 17-Aug-2003
# Posted on: 27-Nov-2018 11:41:34   

We've pushed a new package for ODP.NET which contains the netstandard build. It should turn up in few minutes after the nuget vetting process and indexing dance. It's a prerelease (hotfix) so you have to check the checkbox for prereleases if you use a nuget UI. You also have to update the ormsupportclasses package as the dqe packages depend on a specific ormsupportclasses package but in general that should be automatic once you update the odpnet dqe package.

Frans Bouma | Lead developer LLBLGen Pro
harmen
User
Posts: 47
Joined: 22-Jun-2007
# Posted on: 27-Nov-2018 13:02:56   

Thanks! I will check it out.

harmen
User
Posts: 47
Joined: 22-Jun-2007
# Posted on: 27-Nov-2018 14:46:25   

In my case I have a dot net core console project with targetframework net462 (I am using the latest sdk 2.1.

When I reference the nuget package from this project it uses the net452 lib.

In my code I configure with:

RuntimeConfiguration.ConfigureDQE<OracleDQEConfiguration>(cfg => { cfg.SetTraceLevel(TraceLevel.Verbose); cfg.AddDbProviderFactory(typeof(Oracle.ManagedDataAccess.Client.OracleClientFactory)); });

This throws:

System.TypeInitializationException: The type initializer for 'SD.LLBLGen.Pro.DQE.Oracle.DynamicQueryEngine' threw an exception. ---> SD.LLBLGen.Pro.ORMSupportClasses.ORMGeneralOperationException: None of the factories in the list of 'Oracle.ManagedDataAccess.Client, Oracle.DataAccess.Client' were found. Please check machine.config and the .NET version your application is running on. at SD.LLBLGen.Pro.ORMSupportClasses.DbProviderFactoryInfo.get_FactoryToUse() at SD.LLBLGen.Pro.ORMSupportClasses.DbProviderFactoryInfo.InitializeEnumTypeCache() at SD.LLBLGen.Pro.DQE.Oracle.OracleSpecificCreator.SetDbProviderFactoryParameterData(List`1 dbProviderFactoryInvariantNamesWithEnumTypeNames, String dbProviderSpecificEnumTypePropertyName) at SD.LLBLGen.Pro.DQE.Oracle.DynamicQueryEngine..cctor() --- End of inner exception stack trace --- at SD.LLBLGen.Pro.DQE.Oracle.DynamicQueryEngine.Configure(OracleDQEConfiguration configuration) at Idella.FS.Bgs.BgsImporter.Program.ConfigureDynamicQueryEngine(AppSettings appSettings)

I works correctly when I use a direct assembly reference to the netstandard2.0 lib.

Anyway to force load the netstandard2.0 lib? Or do we still need a net452 lib in the package?

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 27-Nov-2018 21:44:42   

I have a dot net core console project with targetframework net462

How come?! Which of them are you using and targeting Full or Core?