-
Notifications
You must be signed in to change notification settings - Fork 256
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
LockFile validation fails for projects with <RuntimeIdentifiers> set in SDK 3.0.100 #8639
Comments
@nkolev92, Is this because of the framework libraries now getting folded into the SDK with 3.0? |
I think this is a duplicate of #8645. The above example will work if the runtime identifiers are sorted. For example it doesn't repro for me if I do the following: <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<RuntimeIdentifiers>osx-x64;win-x64</RuntimeIdentifiers>
</PropertyGroup>
</Project> Can you please confirm @bergbria |
I guess the other way around since this issue is older. |
Fixed by NuGet/NuGet.Client#3075 |
@nkolev92 - sorry for not responding. Sorting the RIDs did resolve the issue in my repros, so the fix should resolve it. Thanks! |
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
Manual repro steps
dotnet restore --use-lock-file
dotnet restore --use-lock-file --locked-mode
error NU1004: The packages lock file is inconsistent with the project dependencies
despite the fact that the file was just generated and nothing has changed.Tagging @nkolev92 and @rrelyea as FYI.
The text was updated successfully, but these errors were encountered: