Documentation ¶
Index ¶
- func Add(name, value string) func(*dotnetRestoreArgs)
- func AddArg(arg string) func(*dotnetRestoreArgs)
- func Project(file string) func(*dotnetRestoreArgs)
- func Run(args ...Arg) error
- func Solution(file string) func(*dotnetRestoreArgs)
- type Arg
- func ConfigFile(configFile string) Arg
- func DisableParallel() Arg
- func Force() Arg
- func ForceElevate() Arg
- func Help() Arg
- func IgnoreFailedSources() Arg
- func Interactive() Arg
- func LockFilePath(lockFilePath string) Arg
- func LockedMode() Arg
- func NoCache() Arg
- func NoDependencies() Arg
- func Packages(packagesDir string) Arg
- func Runtime(runtime string) Arg
- func Source(source string) Arg
- func Verbosity(level string) Arg
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
Types ¶
type Arg ¶
type Arg func(*dotnetRestoreArgs)
Arg represents a dotnet build CLI argument
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 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 ¶
Output location where project lock file is written. By default, this is 'PROJECT_ROOT\packages.lock.json'.
func NoDependencies ¶
func NoDependencies() Arg
Do not restore project-to-project references and only restore the specified project.
Click to show internal directories.
Click to hide internal directories.