Phalanger; not all .Net libraries available?

178 views Asked by At

I am having trouble getting access to certain .NET libraries. Phalanger promises the ability to tap into all the .NET libraries; however I can't seem to access many. For instance, I cannot do:

$table = new System\Data\DataTable;

which is a standard .NET library. I am not sure why this is happening because their documentation is a bit dry. Any idea what is going on here? Any help is greatly appreciated!

1

There are 1 answers

1
Serguei Fedorov On BEST ANSWER

The solution to this is fairly simple. Phalanger will import

 <add assembly="System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />

according to the documentation. However, if you need any extra libraries which exist in .NET (assuming they are installed), you can do the following:

 <add assembly="System.Data"/>

This will allow your Phalanger based application tap into the library! Make sure to add this into the

  <classLibrary></classLibrary>

block!