I try to restore packages and I get an error that says:
NuGet Package restore failed for project Unable to find version '1.13.2' of package 'jQuery.UI'.
C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\: Package 'jQuery.UI.1.13.2' is not found on source 'C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\'.
//api.nuget.org/v3/index.json: Package 'jQuery.UI.1.13.2' is not found on source '//api.nuget.org/v3/index.json'.
. Please see Error List window for detailed warnings and errors.
I've looked into some other questions about similar issues, but none of those solutions have worked for me yet.So far I haven't had any luck resolving the issue. Any help is appreciated.
Jayraj ChhayaPosted Jan 30, 2024, 10:29 AM
The error message suggests that the NuGet package 'jQuery.UI' with version '1.13.2' cannot be found in the specified sources. This could be due to a few reasons, such as incorrect package source configuration or the package being removed from the source.
To troubleshoot this issue, you can try the following steps:
Verify Package Source: Check if the package source is correctly configured in your NuGet package manager settings. Ensure that the package source contains the required package version. You can do this by going to Tools > Options > NuGet Package Manager > Package Sources in Visual Studio.
Clear NuGet Cache: Clearing the NuGet cache can help resolve issues related to package retrieval. To do this, go to Tools > NuGet Package Manager > Package Manager Settings > General in Visual Studio. Click on the Clear All NuGet Cache(s) button and then try restoring the packages again.
Update NuGet Package Manager: Ensure that you have the latest version of the NuGet Package Manager installed. You can update it by going to Tools > Extensions and Updates in Visual Studio and checking for updates under the Updates tab.
Use a Different Package Source: If the package is not available in the current package source, try adding a different package source that contains the required package version. You can add a new package source by going to Tools > Options > NuGet Package Manager > Package Sources in Visual Studio.
Manually Install the Package: If all else fails, you can manually download the package from a reliable source and add it to your project. You can do this by downloading the package from the official NuGet website (https://www.nuget.org/packages) and then adding it to your project using the Manage NuGet Packages option in Visual Studio.
By following these steps, you should be able to troubleshoot and resolve the NuGet package restore failed error. If the issue persists, it might be worth reaching out to the package maintainer or seeking further assistance from the community or support forums.