添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
长情的刺猬  ·  3.29 ...·  2 月前    · 
被表白的遥控器  ·  OpenTelemetry ...·  6 月前    · 
失恋的包子  ·  2023 ...·  1 年前    · 

Dotnet Publish Cloud Native Buildpack

The Dotnet Publish CNB requires a set of buildpacks and then compiles the application that it has been given.

Integration

The Dotnet Publish CNB provides build dependency. The build dependency can required by generating a Build Plan file that looks like the following:

[[requires]]
  # The name of the Dotnet Publish dependency is "build". This value is considered
  # part of the public API for the buildpack and will not change without a plan
  # for deprecation.
  name = "build"
  # Note: The version field is unsupported as there is no version for a set of
  # build.
  # The Dotnet Publish CNB does not support non-required metadata options.

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.

Specifying a project path

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.