Comments (5)
Hello !
Thank you for your e-mail.
Cs2PHP uses internally MS Roslyn that requires MSBuild 14 in order to open Visual Studio sln and csproj files.
You have to install Visual Studio 14. Currently CTP version is available.
Please let me know if it helps.
Please help with promotion CS2PHP by “stars” on github and “likes” on http://www.cs2php.com/ and https://www.facebook.com/pages/Csharp-to-PHP/670815699606641?fref=ts
Best regards
Piotr
From: ciapa1998 [mailto:[email protected]]
Sent: Wednesday, November 12, 2014 8:12 PM
To: isukces/cs2php
Subject: [cs2php] Error while translating C# code to PHP (#1)
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.
—
Reply to this email directly or view it on GitHub #1 . https://github.com/notifications/beacon/AFz-AEkc0Y34GmOYesEmuQxZmCk-faJcks5nM6iRgaJpZM4C6R5F.gif
Ta wiadomość e-mail jest wolna od wirusów i złośliwego oprogramowania, ponieważ ochrona avast! Antivirus jest aktywna.
http://www.avast.com
from cs2php.
Thanks, that fixed it. It seems to work like a charm, just getting Request Parameters causes errors.
from cs2php.
from cs2php.
When I use
Request.RuntimeRequest.Get["key"].ToString();
I get the error that arrays, enums and skip are not supported. Why is the Request class available then? Currently I'm bypassing the issue by editing the PHP files after generation and setting the vars using $_GET['key']
from cs2php.
Use following:
$dd = $_GET['key'];
You will get :
var dd = Script.Get["key"];
RuntimeRequest represents functionality required by webserver+php symulator. I’ve moved some files to Lang.Php.Webserver namespace in order to avoid mistakes. New version cs2php is available both on github and nuget.
Thank you.
Piotr
From: ciapa1998 [mailto:[email protected]]
Sent: Friday, November 14, 2014 7:06 AM
To: isukces/cs2php
Cc: Piotr
Subject: Re: [cs2php] Error while translating C# code to PHP (#1)
When I use
Request.RuntimeRequest.Get["key"].ToString();
I get the error that arrays, enums and skip are not supported. Why is the Request class available then? Currently I'm bypassing the issue by editing the PHP files after generation and setting the vars using $_GET['key']
—
Reply to this email directly or view it on GitHub #1 (comment) . https://github.com/notifications/beacon/AFz-ANGBoJjIFwWP_LLxP9ivWhe7h6Dsks5nNZNXgaJpZM4C6R5F.gif
Ta wiadomość e-mail jest wolna od wirusów i złośliwego oprogramowania, ponieważ ochrona avast! Antivirus jest aktywna.
http://www.avast.com
from cs2php.
Related Issues (13)
- Use this for c/cpp? HOT 1
- Project not working HOT 4
- Project is good, really. But one question: HOT 1
- Unhandled Exception: System.IO.FileNotFoundException: ... System.Threading.Tasks.Dataflow HOT 3
- Generic Return Type HOT 3
- The Lang.Php.Webserver is putting extraneous quotes, and other errors.
- Compile/Usage instructions HOT 2
- lots of errors
- please provide build instructions HOT 4
- Not working HOT 3
- Compile/ Runtime error HOT 2
- Would you think to do what I said please? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cs2php.