The .NET Execute CNB sets the start command for a given .Net Core application once it has been built by preceding buildpacks.
The .NET Execute CNB completes the setup of a .Net Core application built using a sequence of CNBs. As such, it will be the only non-optional CNB in that sequence and is not explicitly required by any CNB that precedes it.
It provides dotnet-execute
as a dependency, but currently there's no
scenario we can imagine that you would use a downstream buildpack to require
this dependency. If a user likes to include some other functionality, it can be
done independent of the .NET Execute CNB without requiring a dependency
of it.
To package this buildpack for consumption:
$ ./scripts/package.sh
This builds the buildpack's source using GOOS=linux by default. You can supply another value as the first argument to package.sh.
To specify a project subdirectory to be used as the root of the app, please use
the BP_DOTNET_PROJECT_PATH
environment variable at build time either directly
(e.g. pack build my-app --env BP_DOTNET_PROJECT_PATH=./src/my-app
) or through a
project.toml
file.
BP_DOTNET_PROJECT_PATH=./src/my-app