-
Notifications
You must be signed in to change notification settings - Fork 832
Description
Please provide a succinct description of the issue.
Version 6.0.5 of the FSharp.Core library seems to have two different contents depending on where it is delivered from.
The version bundled in the SDK (found under C:\Program Files\dotnet\sdk\6.0.400\FSharp\library-packs stems from this commit.

The version published on NuGet.org stems from this commit.

In our builds, we make use of packages.lock.json and global.json files to ensure repeatable builds across different machines.
We make use of the below in a Directory.Build.props file to ensure hashes are the same, and this has worked historically up until the 6.0.400 SDK release.
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
<DisableImplicitNuGetFallbackFolder>true</DisableImplicitNuGetFallbackFolder>
The version on NuGet.org predates the version in the SDK, so the content hash on local builds seems to update but our pipelines are failing with the error:
error NU1403: Package content hash validation failed for FSharp.Core.6.0.5. The package is different than the last restore.
Given the hashes (and the content) are indeed different, this is expected, what is unexpected is the delivery of two distinct packages with the same version number.
Repro steps
- Create a project that references
FSharp.Coreversion 6.0.5, enable lock files and restore. - Install the
6.0.400SDK. - Restore packages again.
Expected behavior
The content of the FSharp.Core package (version 6.0.5) delivered by the 6.0.400 SDK should match that on NuGet.org.
Actual behavior
The content of the FSharp.Core package (version 6.0.5) delivered by the 6.0.400 SDK is different to that which is delivered on NuGet.org.
Known workarounds
We have downloaded the package from NuGet.org and assigned it version 6.0.5.1 in our own feed to force it to pick up a new version.
- Operating system - Windows
- .NET Runtime kind - .NET 6.
- Editing Tools - Visual Studio version 17.3
Metadata
Metadata
Assignees
Labels
Type
Projects
Status