isukces / cs2php Goto Github PK
View Code? Open in Web Editor NEWC# to PHP compiler
License: Other
C# to PHP compiler
License: Other
How to build it?
this is an incredible project;
i would love to work with it;
however, I am having a hard time building it, as the projects are complaining about missing components.
can you either:
thanks! help much appreciated!
i cannot build this
Whenever I try to convert a C# Project, cs2php throws the following error:
Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
This happens with both, Example Projects and self-written ones.
I hope that we can fix the problem as soon as possible, as I'm in urgent need of porting C# Code to PHP.
After 7 hours of trying to compile and compile the example, nothing happened. Under no circumstances can an example be launched. Lay out the working version of the libraries at least for file hosting, if so are afraid of violating the license.
At first, that you for sharing this already quite good compiler! I think it has a lot of potential!
Meanwhile, it seems that a generic return type of a function seems to crash the compiler... In addition, both, System.Byte and System.UInt64 do not seems to work so far
I compiled the solution, and started testing the various examples with the Lang.Php.Webserver. The DocTypes aren't getting converted to a tag at all, it's just dumped as a string. And everywhere that EchoTagOpen EchoTagBound, or EchoTagClose is used, it dumps excessive double and single quotes into the output. Everything is proper when recompiled to PHP, the problem is only when using the test server. The Following is what the Graphics example sends to the browser when using Lang.Php.Webserver to test:
Doctypes.XHTML_Transitional"<'html'"'>'"<'head'"'>'"<'title'"'>''Dynamic image'</'title'></'head'>"<'body'"'>'"<'p'"'>''PNG'</'p'>
"<'p'"'>'""<'img'" 'src'="'image.php?format=png'" 'alt'="'Demo png image'"' />'"</'p'>
"<'p'"'>''JPG, compression 10'</'p'>
"<'p'"'>'""<'img'" 'src'="'image.php?format=jpg&compression=10'" 'alt'="'Demo jpg image'"' />'"</'p'>
"<'p'"'>''JPG, compression 50'</'p'>
"<'p'"'>'""<'img'" 'src'="'image.php?format=jpg&compression=50'" 'alt'="'Demo jpg image'"' />'"</'p'>
"<'p'"'>''JPG, compression 100'</'p'>
"<'p'"'>'""<'img'" 'src'="'image.php?format=jpg&compression=100'" 'alt'="'Demo jpg image'"' />'"</'p'>
</'body'>
</'html'>
I think it makes more sense if you make a plugin that can write php language like 'php tools' on visual studio. Something called 'phptools' is actually very nice but it is not open source code and watch paid video introduction is really nice plugin but the only bad thing is paying not open source
Can you add compile and usage instructions to your readme please? I am new to C# and am trying to build your code in Visual Studio and it is giving me a lot of Errors.
Thanks
Can this be used for CPP as well? Or if you're bored and wanna port a version to do that? :)
thanks either way!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.