[mono] How to use .NET functions?

Discussion about the open-source Phalanger [?] project.

[mono] How to use .NET functions?

Postby LLB@codeplex » December 9th, 2007, 3:06 am

Hi,

I've downloaded Phalanger, and tried it on Unix. I had an error using PHP library functions (fgets, substr, explode), but I solved this problem by adding "/reference:PhpNetClassLibrary.dll" on the compilation line.

Now, I'd like to call .NET functions, especially from a .dll file. But, I can get an error with the following source file:

<?php System:::Console:::WriteLine("test"); ?>

Error: Call to undefined function: 'System:::Console:::WriteLine'.

I tried several other ways (using the import syntax, etc.) but I didn't succeed. I've added the "/lang:CLR", but it's not enough. I had the same error with other .NET methods (or with functions from a .dll file).

Any solution?

Thanks.

Laurent.
LLB@codeplex
 
Posts: 1
Joined: January 7th, 2012, 8:54 pm

Return to Phalanger project

Who is online

Users browsing this forum: No registered users and 16 guests

cron

User Control Panel

Login

Who is online

In total there are 16 users online :: 0 registered, 0 hidden and 16 guests (based on users active over the past 5 minutes)
Most users ever online was 256 on March 28th, 2024, 9:42 am

Users browsing this forum: No registered users and 16 guests