How to fix 'Can not install nuget packages'

By Tan Lee Published on Jan 14, 2024  7.22K
The error you're encountering typically indicates that the DevExpress components you're trying to access cannot be found in the specified directory.

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.