dotnetrestore

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(*dotnetRestoreArgs)

Add adds a new "name value" style argument. e.g. --v m

func AddArg

func AddArg(arg string) func(*dotnetRestoreArgs)

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

func Project

func Project(file string) func(*dotnetRestoreArgs)

Project file (.csproj) to build

func Run

func Run(args ...Arg) error

Run runs the dotnet CLI

func Solution

func Solution(file string) func(*dotnetRestoreArgs)

Solution file (.sln) to build

Types

type Arg

type Arg func(*dotnetRestoreArgs)

Arg represents a dotnet build CLI argument

func ConfigFile

func ConfigFile(configFile string) Arg

The NuGet configuration file to use.

func DisableParallel

func DisableParallel() Arg

Prevent restoring multiple projects in parallel.

func Force

func Force() Arg

Force all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting project.assets.json.

func ForceElevate

func ForceElevate() Arg

Forces restore to reevaluate all dependencies even if a lock file already exists.

func Help

func Help() Arg

Help - Show this text and exit.

func IgnoreFailedSources

func IgnoreFailedSources() Arg

Treat package source failures as warnings.

func Interactive

func Interactive() Arg

Allows the command to stop and wait for user input or action (for example to complete authentication).

func LockFilePath

func LockFilePath(lockFilePath string) Arg

Output location where project lock file is written. By default, this is 'PROJECT_ROOT\packages.lock.json'.

func LockedMode

func LockedMode() Arg

Don't allow updating project lock file.

func NoCache

func NoCache() Arg

Do not cache packages and http requests.

func NoDependencies

func NoDependencies() Arg

Do not restore project-to-project references and only restore the specified project.

func Packages

func Packages(packagesDir string) Arg

The directory to restore packages to.

func Runtime

func Runtime(runtime string) Arg

The target runtime to restore packages for.

func Source

func Source(source string) Arg

The NuGet package source to use for the restore.

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].

Jump to

Keyboard shortcuts

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