C# console apps running on the latest mono version, which is built daily. Or: choose any version of mono (starting from 4.0.4*)
Note: If you're running on ASP, use Heroku's unofficial official buildpack instead: heroku/dotnet-buildpack.
You can still run webservers; self-hosting OWIN and NancyFx work perfectly. I recommend Nowin.
heroku buildpacks:set https://github.com/adamburgess/heroku-buildpack-monoto set the buildpack
mono ProjectName.exeto your Procfile. Apps will be built into the root directory
.mono file to configure more options:
# put a tag name here that has a corresponding release to specify a version* # omitting this will use the latest available mono version MONO_VERSION=96e40c5793ff # specify the build you want, either minimal (default) or full # see below for explanation MONO_TYPE=minimal # if this is set, the cache is not used/cleaned. # the cache is used to 1) store mono builds and 2) store nuget packages MONO_CACHE=nope
The builder creates two versions of mono:
For most, the minimal build will work fine, and it is the default. Enable the full build if you need its resources or are having problems.
Create a pull request in adamburgess/heroku-buildpack-mono-builder changing the
latest file to the tag or commit that you want, and I'll merge and see that it builds successfully.
Copy the snippet above into CLI.