publish

Publishes binaries via dotnet publish, optionally self-contained/trimmed and batched via a generated solution.

@dotnet publish {
    configuration = "Release"
    restore = "true"
    build = "true"
    runtime = "linux-x64"
    trim = true
    single = true
    args = "--version-suffix beta"
}

Capabilities

CapabilityInfo
Cacheremote
Bachyes

Argument Reference

The following arguments are supported:

  • configuration - (Optional) Configuration (defaults to Debug).
  • restore - (Optional) Perform restore (omit to add --no-restore).
  • build - (Optional) Build before publish (omit to add --no-build).
  • runtime - (Optional) Runtime identifier (-r).
  • trim - (Optional) Adds -p:PublishTrimmed=true.
  • single - (Optional) Publishes self-contained (--self-contained).
  • args - (Optional) Additional arguments for dotnet publish.
Last updated on