DevExpress: Can't add NuGet Packages

This post shows you how to fix error: 'The local source 'C:\Program Files (x86)\DevExpress 20.2\Components\System\Components\Packages' doesn't exist.'

I've created an ASP.NET Core project, i don't use anything DevEpxress components, but when i install or update the library from Nuget i got an error as shown below.

Severity Code Description Project File Line Suppression State
Error The local source 'C:\Program Files (x86)\DevExpress 20.2\Components\System\Components\Packages' doesn't exist.

visual studio

This problem maybe i have installed different versions of DevExpress before then i uninstalled DevExpress. To fix the error when installing libraries from Nuget in a project that doesn't use DevExpress, you can do the following step.

In Visual Studio, you can go to Tools =>Nuget Package Manager =>Package Manager Settings.

visual studio

Under Package Sources subgroup on the left, you need to uncheck or delete the missed references to Package Sources.