Coder Social home page Coder Social logo

Comments (5)

isukces avatar isukces commented on June 2, 2024

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.

 avatar commented on June 2, 2024

Thanks, that fixed it. It seems to work like a charm, just getting Request Parameters causes errors.

from cs2php.

isukces avatar isukces commented on June 2, 2024

from cs2php.

 avatar commented on June 2, 2024

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.

isukces avatar isukces commented on June 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.