Problem: Unable to resolve dependencies of NuGet packages
When you upgrade the site by installing Telerik.Sitefinity.All or Progress.Sitefinity.Headless NuGet package, Visual Studio throws the following error:
Unable to resolve dependencies. 'Progress.Sitefinity.Authentication 10.0.6421' is not compatible with 'Telerik.Sitefinity.Core 10.1.6523Unable to resolve dependency 'Telerik.Sitefinity.AmazonCloudSearch'. Source(s) used: 'Sitefinity NuGet Server', 'nuget.org', 'Microsoft Visual Studio Offline Packages.
The cause for this error is that NuGet cache conflicts with the build of the site.
Solution
To resolve the problem, perform the following:
- Clear the NuGet cache files. Perform the following:
- In Visual Studio, navigate to Tools » NuGet Package Manager » Package Manager Console.
- In the console that opens, run the following command:
dotnet nuget locals global-packages --clear
- Confirm that the nuget.org (
https://api.nuget.org/v3/index.json) and Sitefinity NuGet Server (https://nuget.sitefinity.com/nuget) are configured in Visual Studio.
To do this, navigate to Tools » NuGet Package Manager » Package Manager Settings » Package Sources. - Delete all packages from the
packagesfolder, located in your project's folder. - Reinstall the correct version of
Telerik.Sitefinity.AllorProgress.Sitefinity.Headlessdepending on your project. - Restore and rebuild your project.
Want to learn more?
Enhance your Sitefinity skills by enrolling in free training sessions. Become Sitefinity certified through Progress Education Community to strengthen your professional credentials.
Get started with Integration Hub | Sitefinity Cloud
This free lesson teaches administrators, marketers, and other business professionals how to use Sitefinity Integration Hub to create automated workflows between Sitefinity and other business systems.
Web Security for Sitefinity Administrators
This free lesson teaches administrators the basics about protecting your Sitefinity instance and your sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.
Foundations of Sitefinity ASP.NET Core Development
The free on-demand video course teaches developers how to use Sitefinity ASP.NET Core and take advantage of its decoupled architecture and modern development model.