1. Arcady Abramov
  2. Beta Testing
  3. Monday, 13 January 2020 11:32 AM UTC

Hello, team

I am looking for a description of application technique which would allow me to distribute my large desktop application into PB .NET assemblies, which can be called from the main PB application.

I currently have PB 12.6 NET assemblies, which I use through COM in PB 2017 applications.

I would like to know what my options are in upgrading these assemblies to PB 2019 technology. AS you know PB 12.6 is no longer supported and it's .NET assemblies have multitude of problems.

Thank you

Arcady

Accepted Answer
Michael Kramer Accepted Answer Pending Moderation
  1. Monday, 13 January 2020 13:36 PM UTC
  2. Beta Testing
  3. # Permalink

I would migrate to PB 2019 R2 since it has better interop with C# than PB 2019 GA. Then have a look at the PowerScript to C# migration tool.

This way you get managed code. And you get automated migration of significant amount of code.

Still some code needs manual migration when there is no direct C# equivalent to your PowerScript code. EX: PowerScript has quite powerfull CHOOSE-CASE where the case switches can be expressions instead of constants. Also, PowerScript allows GOTO between scopes in a way unsupported in C#.

Comment
  1. Armeen Mazda @Appeon
  2. Tuesday, 14 January 2020 01:29 AM UTC
Do you mean your application UI is a PB.NET application also?
  1. Helpful
  1. Arcady Abramov
  2. Tuesday, 14 January 2020 06:32 AM UTC
No, the application UI is PB 2017 classic. Actually, it is about 20 different desktop applications. They all use same PB.NET assemblies.

I need a way to migrate the PB.NET assemblies to a more modern technology.

How can I do that. Can you send me a URL of a document, which explains it?
  1. Helpful
  1. Chris Pollach @Appeon
  2. Tuesday, 14 January 2020 17:02 PM UTC
Hi Arcady;

You would need to manually refactor the PB.Net Assembly code into PB2019 C# Assembly classes (which are based on the ,Net Core technology). From there, PB will use its buil-in SnapDevelop IDE to build & maintain your PB Assemblies. Note that in the case of SnapDevelop, you can also use the VS IDE instead if you wish.

Regards ... Chris
  1. Helpful
There are no comments made yet.
Arcady Abramov Accepted Answer Pending Moderation
  1. Wednesday, 15 January 2020 07:37 AM UTC
  2. Beta Testing
  3. # 1

Is the Powerscript to C# migration tool part of the Standard or only Cloud/Universal editions?

Comment
  1. Armeen Mazda @Appeon
  2. Wednesday, 15 January 2020 07:51 AM UTC
It is in the Universal Edition only. If you do not have a Universal subscription, you can apply for a trial to bump up your subscription temporarily for 30 days. But if you want to continue using this tool after that you will need to upgrade your subscription.
  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.