I deleted nuget cashe with command
nuget locals all -clear
After that, I couldn't run a project. My project is in ASP.NET Core 2. It shows this error message
error : An error occurred while retrieving package metadata for 'Microsoft.Extensions.Caching.Memory.2.1.1' from source 'C:\Program Files\dotnet\sdk\NuGetFallbackFolder'
I tried dotnet restore, the same mistake. I tried to reinstall packages but nothing helps. Any suggestions for fixing this problem or explanation of the problem?
My project file contains :
<Reference Include="Microsoft.Extensions.Caching.Memory, Version=2.2.0.0, Culture=neutral, , processorArchitecture=MSIL">
<HintPath>..\..\packages\Microsoft.Extensions.Caching.Memory.2.2.0\lib\netstandard2.0\Microsoft.Extensions.Caching.Memory.dll</HintPath>
</Reference>