How to compile php script to .net class using phpc ...
3 posts
• Page 1 of 1
How to compile php script to .net class using phpc ...
Hi,
I just want to know how to compile a php code to .net dll using the command line: phpc myclass.php /target:dll /pure+
but without appending [\Export] in the class code:
[\Export]
class myClass
{
public function f()
{
return "Hello World";
}
}
I don't want to append [\Export] because it is very tiresome. I have a lot of php classes to compile to .net dlls . please help.
I just want to know how to compile a php code to .net dll using the command line: phpc myclass.php /target:dll /pure+
but without appending [\Export] in the class code:
[\Export]
class myClass
{
public function f()
{
return "Hello World";
}
}
I don't want to append [\Export] because it is very tiresome. I have a lot of php classes to compile to .net dlls . please help.
- nexialist
- Posts: 4
- Joined: January 15th, 2014, 5:32 am
Re: How to compile php script to .net class using phpc ...
You can place
- Code: Select all
[assembly: Export]
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
Re: How to compile php script to .net class using phpc ...
Jakub Misek, Thanks a lot!!
- nexialist
- Posts: 4
- Joined: January 15th, 2014, 5:32 am
3 posts
• Page 1 of 1
Return to PHP/C# interoperability
Who is online
Users browsing this forum: No registered users and 1 guest