You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NuGet version: NuGet Client Release-4.9.0-preview5\4.9.0.5627
VS Version: D15.9\28219.56
OS Version: Windows 10 RS4_Release 17134.1.180410-1804
Detailed repro steps
Create a C# Console Application (.NET Core) project via VS.
Install a few ‘PackageReference’ packages into the project.
Set MSBuild property “RestorePackagesWithLockFile” to true in csproj file.
Do a restore.
Check it should have generated ‘packages.lock.json’ file alongside *.csproj file.
Set the msbuild property “RestoreLockedMode” to “true”.
Install another package.
It should still work fine and update ‘packages.lock.json’ file.
Manually add a new PackageReference item into csproj file.
Perform restore.
Expected
Error NU1004: “The packages lock file is inconsistent with the project dependencies so restore can't be run in locked mode. Please disable RestoreLockedMode MSBuild property or pass explicit --reevaluate flag to run restore to update the lock file” should show in Error List window.
Actual
Nothing shows in Error List window as below screenshot.
Note
It just repro on C# Console Application (.NET Core) when restoring through PM UI.
The text was updated successfully, but these errors were encountered:
rrelyea
changed the title
[Test Failure][Repeatable Restore] No error show in Error List window when adding new PackageReference item into csproj file after enabling “RestoreLockedMode”
Errors from lock file enforcement should show up in Error List Window
Jan 25, 2019
Details about Problem
NuGet version: NuGet Client Release-4.9.0-preview5\4.9.0.5627
VS Version: D15.9\28219.56
OS Version: Windows 10 RS4_Release 17134.1.180410-1804
Detailed repro steps
Expected
Error NU1004: “The packages lock file is inconsistent with the project dependencies so restore can't be run in locked mode. Please disable RestoreLockedMode MSBuild property or pass explicit --reevaluate flag to run restore to update the lock file” should show in Error List window.
Actual
Nothing shows in Error List window as below screenshot.
Note
It just repro on C# Console Application (.NET Core) when restoring through PM UI.
The text was updated successfully, but these errors were encountered: