How to Convert PHP to ASP.NET
- 1). Download your free copy of ASP.NET from the Microsoft website. You also have the option to install it right from the download page by clicking the "Install Now" button.
- 2). Open "Visual Studio .NET" and select the "Convert" menu option. Choose the "PHP to ASP.NET Migration Assistant" migrator, and determine whether you will produce a new solution or add the project you are converting to the current solution. Upon deciding, follow the PHP to ASP.NET Migration Assistant Wizard's instructions.
- 3). Run the "PHPConvert.exe" command-line tool on your console to migrate or convert PHP files to ASP.NET:
PHPConvert[.exe] { <DirectoryName> [/Out <DirectoryName>] [/NoLog | /LogFile <filename>] [/NoLogo] [/Verbose] [/ProjectName <ProjectName>] [/ForceOverwrite] }
The migration assistant will now convert most of the PHP language components to C# equivalents, such as classes and objects, constants, control structures, functions, operators, references, syntax, types and variables.