1. Patrick Therrien
  2. PowerBuilder
  3. Tuesday, 4 May 2021 17:31 PM UTC

Hi,

 

Someone have an alternative to replace .Net assembly target in PB2019 to generate a component usable with .Net application?

 

Thank you for help.

Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 4 May 2021 18:22 PM UTC
  2. PowerBuilder
  3. # 1

Yes, you do C# project in the SnapDevelop IDE using the .NET DataStore.  If you already have existing.NET assembly project in PowerBuilder, you can convert it to C# with the PowerScript Migrator.  Here is more info and tech resources at the bottom of the pages:

https://www.appeon.com/products/dotnet-datastore
https://www.appeon.com/products/powerscript-migrator

Comment
  1. Patrick Therrien
  2. Tuesday, 4 May 2021 19:13 PM UTC
ty Armeen, I already have a .net assembly target. I'm looking to make the transition less painful. Thanks I am looking for this option!
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Tuesday, 4 May 2021 21:06 PM UTC
You're very welcome. Since you have existing .NET Assembly targets, definitely use the PowerScript Migrator. Once it is converted to C# you can compile in SnapDevelop as a .NET assembly or a REST API.

Also, PowerBuilder now has a .NET DLL Importer that allows you to import .NET DLLs and natively call them from PowerScript: https://docs.appeon.com/pb2019r2/whats_new/ch01s03.html
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 4 May 2021 18:25 PM UTC
  2. PowerBuilder
  3. # 2

Hi Patrick;

  You can now build proper .NET Assemblies in the SNAPDevelop IDE that also comes with PB2019Rx and higher editions of Appeon PB. Also, you could also use VS as well to build the .Net Assembly. Then once you have the .Net Assembly ready, it's super easy now to consume your .NET Assembly in a PB App using the new "DotNetAssembly" object feature within the PB IDE & Runtime.

FYI: https://docs.appeon.com/pb2019r2/powerscript_reference/ch10s478.html

HTH

Regards ... Chris

Comment
  1. Armeen Mazda @Appeon
  2. Tuesday, 4 May 2021 18:43 PM UTC
Correction... SnapDevelop and .NET DataStore included with all bundles of PowerBuilder, but PowerScript Migrator only in the CloudPro. Please refer to the table on the pricing page: https://www.appeon.com/pricing
  1. Helpful
  1. Patrick Therrien
  2. Tuesday, 4 May 2021 19:15 PM UTC
ty Chris for your help, I'm looking at SNAPDevelop to save all my PB scripts! :)
  1. Helpful
  1. Chris Pollach @Appeon
  2. Tuesday, 4 May 2021 19:27 PM UTC
Welcome. Since SNAP's (or VS's) .Net Assembly is all C# - follow Armeen's great tip about using the new PowerScript Migrator feature of PB2019Rx CloudPro edition to help automate the translation of your current PS code into C#. ;-)
  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.