1. Gary Eden
  2. PowerBuilder
  3. Thursday, 10 December 2020 06:46 AM UTC

Hi,

I've created a nvo using the .net dll importer tool for .net core. Everything is working fine within my development environment and with the installed application on the development environment(even when changing the appeon directory to rule out any files installed but not deployed).

When i deploy the application to a test machine I get a failure with loadwithdotnetcore failure of -19 Cannot find the .NET Core runtime.

In powershell i run the following command 'dotnet --list-runtimes' and i have ensured that I have the same installed files for both dev and test machines. In the dev environment I placed a call to pick up the dotnetcorversion which reports 3.1.9, if that is installed in the test environment then I would expect it to also just work.

I have deployed the pb dlls and can make calls using the .net framework with no problem. At the moment I have rewritten the code to use .net framework to get around the problem but would really like some suggestions to what I've missed with .net core not working in test environment.

 

Thanks

Gary

Miguel Leeuwe Accepted Answer Pending Moderation
  1. Thursday, 10 December 2020 17:58 PM UTC
  2. PowerBuilder
  3. # 1

---------------------------------------------------------------------------
How to Get a standalone version of .Net CORE to distribute with assembly:
---------------------------------------------------------------------------
- Go to the folder where your .sln file is
- cmd in file explorer

(Example:)
- D:\_TFS\VisualStudio\VS_PB\CSharpForPowerbuilder\DEVELOP>dotnet publish -r win-x86

that should give you all the needed runtime .net core files. (in this example for winx86).

Comment
There are no comments made yet.
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Thursday, 10 December 2020 15:42 PM UTC
  2. PowerBuilder
  3. # 2

Did you include these PB runtime DLLs: PBDotNet190.dll, PBDotNetFrameworkInvoker190.dll, PBDotNetCoreInvoker190.dll?

Are you loading the .NET Core 3.1.9 DLL with this command?

ll_return = lcs_ass.LoadWithDotNetCore(ls_dll,"3.1.9")

Comment
  1. Gary Eden
  2. Thursday, 10 December 2020 15:56 PM UTC
Yes I am distributing the PB runtime dlls.

I am not specifying the dotnetcoreversion as it is optional and should select the latest installed version.

I am running PB2019 R2 2353.

If i open the code in snapdevelop it has a problem with the .netcore 3.1 but I think this is addressed in PB2019 R3. In the end the dll is produced using VS2019 and works in the development environment.
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Thursday, 10 December 2020 16:07 PM UTC
That is not a problem/bug. SnapDevelop 2019 R2 only supports .NET Core 2.x per the documentation. We are adding support for .NET Core 3.x to SnapDevelop 2019 R3. An IDE has to support new .NET versions... it doesn't automatically happen.

Have you tried on some other machines to see if also have the same problem?
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.