Add force restore option
This commit is contained in:
parent
883c5d13e8
commit
d1e7e3d77d
2 changed files with 8 additions and 0 deletions
|
@ -165,4 +165,7 @@
|
|||
<data name="CmdNoDependenciesOptionDescription" xml:space="preserve">
|
||||
<value>Set this flag to ignore project to project references and only restore the root project.</value>
|
||||
</data>
|
||||
<data name="CmdForceRestoreOptionDescription" xml:space="preserve">
|
||||
<value>Set this flag to force all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting project.assets.json.</value>
|
||||
</data>
|
||||
</root>
|
|
@ -60,6 +60,11 @@ namespace Microsoft.DotNet.Cli
|
|||
LocalizableStrings.CmdNoDependenciesOptionDescription,
|
||||
Accept.NoArguments()
|
||||
.ForwardAs("/p:RestoreRecursive=false")),
|
||||
Create.Option(
|
||||
"-f|--force",
|
||||
LocalizableStrings.CmdForceRestoreOptionDescription,
|
||||
Accept.NoArguments()
|
||||
.ForwardAs("/p:RestoreForce=true")),
|
||||
CommonOptions.VerbosityOption());
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue