The NET Console Container runs a .NET console app; as identified by the presence of an {app_name}.exe.config
file somewhere in your uploaded app folder structure.
Detection Criteria | .exe.config in app folder tree (`*.vshost.* are ignored`) |
Tags | console container |
Note that having more than one .exe.config
in your folder structure will cause an exception.
Use the Procfile container if you need to run more than one process. (Or want to explicitly choose which .exe is run)
When the Console container detects $HOME/app/path/to/your-console-app.exe.config it will generate the following start command:
mono --server $HOME/app/path/to/your-console-app.exe
See spec/fixtures/sample_commandline_app for a full example app.
If your console app doesn't listen for HTTP requests, be sure deploy it with now HTTP route, eg:
gcf push app-name -p bin -b https://github.com/cloudfoundry-community/.net-buildpack -m 256 --no-route --no-hostname