Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NuGet.exe suggests incorrect argument form "--force-evaluate" (should be "-ForceEvaluate") for NU1004 #9365

Open
fowl2 opened this issue Mar 31, 2020 · 1 comment
Labels
Area:Logging Functionality:Restore help wanted Considered good issues for community contributions. Priority:3 Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog. Product:NuGet.exe NuGet.exe

Comments

@fowl2
Copy link

fowl2 commented Mar 31, 2020

Looks like the help/error message is getting confused with the "dotnet restore" version of the argument.

Repro Steps

> nuget.exe restore

NU1004: The packages lock file is inconsistent with the project dependencies so restore can't be run in locked mode. Disable the RestoreLockedMode MSBuild property or pass an explicit --force-evaluate option to run restore to update the lock file.

Ok sure, let's try.

> nuget.exe restore  --force-evaluate
Unknown option: '--force-evaluate'
NuGet.Commands.CommandException: Unknown option: '--force-evaluate'
   at NuGet.CommandLine.CommandLineParser.GetPartialOptionMatch[TVal](IEnumerable`1 source, Func`2 getDisplayName, Func`2 getAltName, String option, String value)
   at NuGet.CommandLine.CommandLineParser.ExtractOptions(ICommand command, IEnumerator`1 argsEnumerator)
   at NuGet.CommandLine.CommandLineParser.ParseCommandLine(IEnumerable`1 commandLineArgs)
   at NuGet.CommandLine.Program.MainCore(String workingDirectory, String[] args)

NuGet Version: 5.5.0
Platform: Windows 10 x64 10.0.17763.1098

@nkolev92 nkolev92 added Area:Logging Functionality:Restore Product:NuGet.exe NuGet.exe help wanted Considered good issues for community contributions. Priority:3 Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog. labels Jul 2, 2020
@nkolev92
Copy link
Member

nkolev92 commented Jul 2, 2020

Hey @fowl2

We are prioritizing issues based on their customer impact and given that this is non breaking we are not sure we'll be able to get to this soon.

We would happily consider a pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area:Logging Functionality:Restore help wanted Considered good issues for community contributions. Priority:3 Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog. Product:NuGet.exe NuGet.exe
Projects
None yet
Development

No branches or pull requests

4 participants