1. Torgeir Lund
  2. PowerBuilder
  3. Friday, 23 August 2024 13:43 PM UTC

Hi we have an C# DLL in .net framework 4.8 that we have imported via .net DLL importer.

We used build PB 2022 1900 and we coud call the dll

When we use PB r3 build 3356 we can't load the assembly.

 

Only if we install windowdesktop runtime 6.0 it will work but .net 6.0 is end of life in november.

Why can't PB use thhe framework 4.8 runtime instead?

Torgeir Lund Accepted Answer Pending Moderation
  1. Friday, 23 August 2024 15:42 PM UTC
  2. PowerBuilder
  3. # 1

In Pb 2022r3  loadwithdotnetframework is not supported?! *can compile) not working. Have to use loadwithdotnet.

 

My issue a to start with is that .net 6.0 has end of life in november 2024.(runtime)

 

I  have Just found a solution by editing the file pbdotnetinvoker.runtimeconfig.json file found under pb runtime libray, i could set the .net version to 8.0 and it works with my .net core 6.0 dll so no need for runtime 6.0 desktop 

 

Regard Torgeir 

 

Comment
  1. Armeen Mazda @Appeon
  2. Sunday, 25 August 2024 00:57 AM UTC
.NET 8 support coming in an MR for R3 that will be released very soon before .NET 6 is EOL. Please for now try with .NET 6 so we can see if it is .NET version issue or other problem?
  1. Helpful
  1. Torgeir Lund
  2. Sunday, 25 August 2024 07:45 AM UTC
It works fine with the Windows desktop runtime 6.0 but since our customers not want to use this after 12. November 2024 then we have an issue.
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Tuesday, 27 August 2024 13:19 PM UTC
I understand. .NET 8 support coming in the next MR (maintenance release).
  1. Helpful 3
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Friday, 23 August 2024 14:31 PM UTC
  2. PowerBuilder
  3. # 2

The DLL importer now defaults to LoadWithDotNet(). Edit the code and replace it with LoadWithDotnetFramework()

Not sure if that's you case?

Comment
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.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.