NuGet/Home
RestoreLockedMode=true & RestoreForceEvaluate=true should error
Chiusa
#8222 aperta il 13 giu 2019
Area:ErrorHandlingArea:RestoreRepeatableBuildCategory:Quality WeekFunctionality:RestorePriority:2Type:Bughelp wanted
Metriche repository
- Star
- (1459 stelle)
- Metriche merge PR
- (Merge medio 464g 23h) (1 PR mergiata in 30 g)
Descrizione
Currently that's not the case.
Repro steps
- dotnet new classlib
- Enable lock file
- dotnet restore (generate lock file).
- dotnet restore /p:LockedMode="true"
- dotnet restore /p:LockedMode="true" /p:RestoreForceEvaluate="true"
The last one should fail, as the instructions do not make sense. From skimming the code, RestoreForceEvaluate takes precedence.
//cc @anangaur It's a trivial fix, so prioritize if you see a need for it.