dll will not recignize using pure mode in phpcore
Posted: April 7th, 2014, 1:47 pm
Hi Guys,
I'm a software developer, I like Object Oriented php, I think it is very powerful, I also love c#. And that it is now dynamic, in part, make it a powerful combination. I'm working on a project, it is php based (more here) and I can't get the .net PhpCore to auto implement it at runtime.
Here is my web.config:
<?xml version="1.0" encoding="utf-8"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0" />
<httpRuntime targetFramework="4.0" />
</system.web>
<phpNet>
<classLibrary>
<add assembly="WikiLingo" />
<add assembly="mscorlib" />
</classLibrary>
</phpNet>
</configuration>
Here is the command I use to build the php to a dll:
phpc ^
/target:dll ^
/pure+ ^
/lang:CLR ^
/out:WikiLingo.dll ^
/recurse:../wikiLingo\WikiLingo ^
/recurse:../wikiLingo\WikiLingoWYSIWYG ^
/recurse:../wikiLingo\WYSIWYGWikiLingo ^
/recurse:../wikiLingo\Types ^
/skip:../wikiLingo\WikiLingo\Test ^
/skip:../wikiLingo\WikiLingoWYSIWYG\Test ^
/skip:../wikiLingo\WYSIWYGWikiLingo\Test 2>out.log
Here is the output:
https://github.com/wikiLingo/wikiLingo.net
Here is the project I want to show off using wikiLingo in c#:
https://github.com/wikiLingo/wikiLingo.net-examples
Can you help me along? I'd like to take full advantage of the c# dynamic types. The .net dll loads just fine, but it is just too strongly typed. Perhaps I'm missing something. Perhaps you can't mix pure mode and and phpcore?
I'm a software developer, I like Object Oriented php, I think it is very powerful, I also love c#. And that it is now dynamic, in part, make it a powerful combination. I'm working on a project, it is php based (more here) and I can't get the .net PhpCore to auto implement it at runtime.
Here is my web.config:
<?xml version="1.0" encoding="utf-8"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0" />
<httpRuntime targetFramework="4.0" />
</system.web>
<phpNet>
<classLibrary>
<add assembly="WikiLingo" />
<add assembly="mscorlib" />
</classLibrary>
</phpNet>
</configuration>
Here is the command I use to build the php to a dll:
phpc ^
/target:dll ^
/pure+ ^
/lang:CLR ^
/out:WikiLingo.dll ^
/recurse:../wikiLingo\WikiLingo ^
/recurse:../wikiLingo\WikiLingoWYSIWYG ^
/recurse:../wikiLingo\WYSIWYGWikiLingo ^
/recurse:../wikiLingo\Types ^
/skip:../wikiLingo\WikiLingo\Test ^
/skip:../wikiLingo\WikiLingoWYSIWYG\Test ^
/skip:../wikiLingo\WYSIWYGWikiLingo\Test 2>out.log
Here is the output:
https://github.com/wikiLingo/wikiLingo.net
Here is the project I want to show off using wikiLingo in c#:
https://github.com/wikiLingo/wikiLingo.net-examples
Can you help me along? I'd like to take full advantage of the c# dynamic types. The .net dll loads just fine, but it is just too strongly typed. Perhaps I'm missing something. Perhaps you can't mix pure mode and and phpcore?