How to create standalone exe

Phalanger Tools for Visual Studio [?] is complete PHP/Phalanger integration into Visual Studio development environment.

How to create standalone exe

Postby IvanPanfilov » July 26th, 2014, 7:12 am

Hello.
I am triyng compile php script with Phalanger 4.0 in Visual Studio 2012. And got only small exe.
It's run ok on my computer, but not each other where Phalanger not installed. I know Phalanger has some dependencies of dlls.
How to make single exe with all dependencies or where these dlls ?
IvanPanfilov
 
Posts: 10
Joined: July 26th, 2014, 7:05 am

Re: How to create standalone exe

Postby Jakub Misek » July 29th, 2014, 3:29 pm

Phalanger installer updates machine.config file and installs DLLs into GAC. To provide standalone exe, you have to include app.config file with configuration and DLLS: PhpNetCore, PhpNetClassLibrary, PhpNetCore.Parsers (and extensions if zou use any)

Take a look into your machine.config file (%WinDir%\Microsoft.NET\Framework\v4.0.30319\Config) and look for phpnet keywords.
Jakub Misek │ DEVSENSE s.r.o. │ Email: jakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2058
Joined: January 4th, 2012, 2:42 pm
Location: Prague

Re: How to create standalone exe

Postby IvanPanfilov » July 30th, 2014, 12:24 pm

Should i just put app.config to same directory which EXE file?
IvanPanfilov
 
Posts: 10
Joined: July 26th, 2014, 7:05 am

Re: How to create standalone exe

Postby Jakub Misek » August 6th, 2014, 10:30 am

Hi,

yes, the .config file has to be placed in the same directory as the .exe file.

When deployed. the config file will be named file.exe.config

thanks,
Jakub Misek │ DEVSENSE s.r.o. │ Email: jakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2058
Joined: January 4th, 2012, 2:42 pm
Location: Prague


Return to Phalanger Tools

Who is online

Users browsing this forum: No registered users and 3 guests

cron

User Control Panel

Login

Who is online

In total there are 3 users online :: 0 registered, 0 hidden and 3 guests (based on users active over the past 5 minutes)
Most users ever online was 62 on January 7th, 2012, 10:54 pm

Users browsing this forum: No registered users and 3 guests
Phalanger