dotnetbuild

package
v0.8.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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

func AddArg

func AddArg(arg string) func(*dotnetBuildArgs)

AddArg adds a simple argument. e.g. --help

func Project

func Project(file string) func(*dotnetBuildArgs)

Project file (.csproj) to build

func Run

func Run(args ...Arg) error

Run runs the dotnet CLI

func Solution

func Solution(file string) func(*dotnetBuildArgs)

Solution file (.sln) to build

Types

type Arg

type Arg func(*dotnetBuildArgs)

Arg represents a dotnet build CLI argument

func Configuration

func Configuration(configuration string) Arg

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

func Framework(framework string) Arg

The target framework to build for. The target framework must also be specified in the project file.

func Help

func Help() Arg

Help - Show this text and exit.

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 NoIncremental

func NoIncremental() Arg

Do not use incremental building.

func NoLogo() Arg

Do not display the startup banner or the copyright message.

func NoRestore

func NoRestore() Arg

Do not restore the project before building.

func Output

func Output(output string) Arg

The output directory to place built artifacts in.

func Runtime

func Runtime(runtime string) Arg

The target runtime to build for.

func Verbosity

func Verbosity(level string) Arg

Set the MSBuild verbosity level. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic].

func VersionSuffix

func VersionSuffix(versionSufix string) Arg

Set the value of the $(VersionSuffix) property to use when building the project.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL