How to create standalone exe
4 posts
• Page 1 of 1
How to create standalone exe
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 ?
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
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.
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. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
Re: How to create standalone exe
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
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,
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. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 3 guests