Support for .NET Framework 4.6.1

Posted by megaxml on 2016-06-24 13:11
Forums: PDK Support | OS: Windows 10

I am using PLC compiler to build 64 bit .NET assembly

plc --shared public --norunlib --force --target library --out main.dll main.pm

It creates the main.dll which works fine with .NET 3.5.
However, it throws an error when called from .NET Framework 4.6.1.
Exception:
"The type initializer for 'main' threw an exception"

How can we tell plc to build assemblies for framework 4.6.1 instead of 3.5?

grahams
ActiveState Staff
Fri, 2016-06-24 14:47

ActivePerl 5.22.1 Build 2201 (32-bit) and ActiveState Perl Dev Kit 9.5.1 Build 300018 (32-bit) does not cause the memory exception even while targeting .Net 4.6.1.

megaxml | Wed, 2016-08-24 14:22

Grahams,

You mentioned the PDK in 32 bits can target .NET 4.6.1.
64 bit PDK compilation is not yet an option.

Can you give me command line example to do that.

When I inspect the current dll compiled by PDK, it shows (NET 2/3.5)/x86 in Telerik JustDecompile.
Am I missing something?

i-shenl
ActiveState Staff
Thu, 2016-08-25 08:08

There's no command line example. What Graham means is you need to install the 32-bit versions of both ActivePerl and PDK.

megaxml | Mon, 2016-06-27 05:21

Thanks for you quick response.
My service is 64 bit .NET 4.6.1, and just because of this assembly, I would have to either downgrade it to .NET 3.5 in 64 bit; or will need to settle down with 32 bit.

Any idea when support for 64 bit .NET 4.6.1 would be available so that I can delay the deployment for a while?