I have moved my project to a new machine and do not have access to an old nuget package called SBD.Common that was stored locally on the old machine.
I want to uninstall the package from the project When I use Manage Nuget Packages for solution I can see that the package is installed but not available in this source.
When I click the Uninstall button I get an error
An error occured while trying to restore the packages" Unable to find version '1.0.0' of 'SBD.Common'
c:\Program files(x86)\Microsoft SDKS\NugetPackages\:Package 'SBD.Common.1.0.0' is not found on source 'C:\Program Files(x86)\Microsoft SDKs\NuGetPackages\'
https://api.nuget.org/v3/index.json:Package 'SBD.Common.1.0.0' is not found
How do I tell my project that I don't want to restore this package without gaining access to the package?
Here is my Nuget.Config at C:\Users\MyName\AppData\Roaming\NuGet
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
</packageSources>
<disabledPackageSources>
<add key="Microsoft and .NET" value="true" />
</disabledPackageSources>
<packageRestore>
<add key="enabled" value="False" />
<add key="automatic" value="False" />
</packageRestore>
<bindingRedirects>
<add key="skip" value="False" />
</bindingRedirects>
</configuration>
I am using Nuget version 3.4.4.1321
Right-click on Project and select Manage NuGet Packages option. Select the Installed tab from NuGet Package Manager dialog and you can see the installed Syncfusion NuGet packages list by giving the Syncfusion keyword in search. Uninstall the Syncfusion NuGet packages which are not required for the project.
If you want to delete/uninstall Nuget package which is applied to multiple projects in your solutions then go to: Tools-> Nuget Package Manager -> Manage Nuget Packages for Solution. In the left column where is 'Installed packages' select 'All', so you'll see a list of installed packages and Manage button across them.
Switch to the Browse tab, search for the package name, select it, then select Install). For all packages, delete the package folder, then run nuget install . For a single package, delete the package folder and use nuget install <id> to reinstall the same one.
the problem was that I had the files listed in packages.config
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With