- Notifications
You must be signed in to change notification settings - Fork 266
Closed
Labels
Milestone
Description
Details about Problem
NuGet product used: dotnet.exe
dotnet.exe --version: 3.0.100
Worked before?: Yes, with sdk version 2.2.402
Automated Repro
- Download netSdk3_rid_lockFile_repro.zip
- Extract
- Run repro.bat
Manual repro steps
- Create a .csproj resembling this:
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>netcoreapp2.1</TargetFramework> <RuntimeIdentifiers>win-x64;osx-x64</RuntimeIdentifiers> </PropertyGroup> </Project>dotnet restore --use-lock-file- This will succeed and write a lock file
dotnet restore --use-lock-file --locked-mode- This will fail with
error NU1004: The packages lock file is inconsistent with the project dependenciesdespite the fact that the file was just generated and nothing has changed.
- This will fail with