LoadWithDotNet VS LoadWithDotNetCore
- New
- How-to
-
mike S
- PowerBuilder
- Wednesday, 24 September 2025 03:56 PM UTC
LoadWithDotNet VS LoadWithDotNetCore - what is the difference and when should one be used vs the other. the docs make it seem like LoadWithDotNet should be used, but it does not work.
PB 2022R3 runtime is 3356, IDE is 3397
created a PB object using the Net Importer to consume a .net dll.
.net importer wrote code which loads the dll using: LoadWithDotNet()
when the dll is built with .net6 this is the result:
LoadWithDotNet(assemblypath) = - 1 FAILED to load with meaningless error number. why did it fail?
LoadWithDotNetCore(assemblypath) = 1 works
getdotnetcoreversion() = 9.0.9 after LoadWithDotNetCore worked
LoadWithDotNetCore(assemblypath, "6") = 1 also works
built with .net8 (this should not work with this runtime version as per other messages, but have a version of this already so i gave it a try:
LoadWithDotNet(assemblypath) = - 1 fails unknown error
LoadWithDotNetCore(assemblypath) = -3 fails -- It's not a valid assembly.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.