I am trying to follow https://www.telerik.com/blogs/azure-devops-and-telerik-nuget-packages
but I keep getting error NU1403: Package content hash validation failed for Telerik.Recurrence.Trial.0.2.0. The package is different than the last restore.
This error is generated because my committed packages.lock.json (which is generated by RestorePackagesWithLockFile = true) is somehow different, even though I use the same credentials.
What can I do?
I had this same issue and I resolved it by upgrading theTelerik.UI.Blazor package to 4.1.0 when it was 4.0.1 previously (I thought we were on this latest release but I was tricked by the similarities between the 4.0.1 and 4.1.0 numbers.
I think they might have pushed new versions of the Datasource and Recurrence packages without updating the version number which was causing the newer package to be resolved and the different hash (though my understanding of nuget is very limited, just my assumption).
Just posting this here in case anyone else comes across this.
If you're not ready to upgrade to 4.1.0 for some reason, don't clear your nuget cache 😅.
Also, seems like other machines/build server needs to have it's cache cleared as well before you'll be able to restore successfully after upgrading the package ðŸ˜