Documentation ¶
Index ¶
- func Add(name, value string) func(*dotnetBuildArgs)
- func AddArg(arg string) func(*dotnetBuildArgs)
- func Project(file string) func(*dotnetBuildArgs)
- func Run(args ...Arg) error
- func Solution(file string) func(*dotnetBuildArgs)
- type Arg
- func Configuration(configuration string) Arg
- func Force() Arg
- func Framework(framework string) Arg
- func Help() Arg
- func Interactive() Arg
- func NoDependencies() Arg
- func NoIncremental() Arg
- func NoLogo() Arg
- func NoRestore() Arg
- func Output(output string) Arg
- func Runtime(runtime string) Arg
- func Verbosity(level string) Arg
- func VersionSuffix(versionSufix string) Arg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Add ¶
func Add(name, value string) func(*dotnetBuildArgs)
Add adds a new "name value" style argument. e.g. --v m
Types ¶
type Arg ¶
type Arg func(*dotnetBuildArgs)
Arg represents a dotnet build CLI argument
func Configuration ¶
The configuration to use for building the project. The default for most projects is 'Debug'.
func Force ¶
func Force() Arg
Force all dependencies to be resolved even if the last restore was successful.
func Framework ¶
The target framework to build for. The target framework must also be specified in the project file.
func Interactive ¶
func Interactive() Arg
Allows the command to stop and wait for user input or action (for example to complete authentication)
func NoDependencies ¶
func NoDependencies() Arg
Do not build project-to-project references and only build the specified project.
func Verbosity ¶
Set the MSBuild verbosity level. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic].
func VersionSuffix ¶
Set the value of the $(VersionSuffix) property to use when building the project.