Page 1 of 1

How to create standalone exe

PostPosted: July 26th, 2014, 7:12 am
by IvanPanfilov
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 ?

Re: How to create standalone exe

PostPosted: July 29th, 2014, 3:29 pm
by Jakub Misek
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.

Re: How to create standalone exe

PostPosted: July 30th, 2014, 12:24 pm
by IvanPanfilov
Should i just put app.config to same directory which EXE file?

Re: How to create standalone exe

PostPosted: August 6th, 2014, 10:30 am
by Jakub Misek
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,