From d1e7e3d77d0ca1aacb41c30171fb4584e1026078 Mon Sep 17 00:00:00 2001 From: Nikolche Kolev Date: Wed, 7 Jun 2017 11:48:40 -0700 Subject: [PATCH] Add force restore option --- src/dotnet/commands/dotnet-restore/LocalizableStrings.resx | 3 +++ src/dotnet/commands/dotnet-restore/RestoreCommandParser.cs | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/src/dotnet/commands/dotnet-restore/LocalizableStrings.resx b/src/dotnet/commands/dotnet-restore/LocalizableStrings.resx index 6ffdc38b3..877cfa218 100644 --- a/src/dotnet/commands/dotnet-restore/LocalizableStrings.resx +++ b/src/dotnet/commands/dotnet-restore/LocalizableStrings.resx @@ -165,4 +165,7 @@ Set this flag to ignore project to project references and only restore the root project. + + 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. + \ No newline at end of file diff --git a/src/dotnet/commands/dotnet-restore/RestoreCommandParser.cs b/src/dotnet/commands/dotnet-restore/RestoreCommandParser.cs index f42acad6b..a50c464a3 100644 --- a/src/dotnet/commands/dotnet-restore/RestoreCommandParser.cs +++ b/src/dotnet/commands/dotnet-restore/RestoreCommandParser.cs @@ -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()); } } \ No newline at end of file