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
| Capability | Info |
|---|---|
| Cache | remote |
| Bach | yes |
Argument Reference
The following arguments are supported:
configuration- (Optional) Configuration (defaults toDebug).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 fordotnet publish.
Last updated on