When I add Nuget packages via the Visual Studio 2015 GUI some packages don't install with the following error
Access to the path 'Microsoft.DotNet.InternalAbstractions.dll' is denied.
I tried running Visual Studio 2015 as Administrator and uninstalling the packages and adding them again but I still get the same error
I closed Visual Studio and killed the 2 running processes called dotnet as well as deleted the C:\Users\myser.nuget\packages folder to ensure all packages are redownloaded again in case something was corrupt.
Go to the dll path and make sure to give the right permission access to the local machine :
I usually do the below :
1- Untick the Read-only field :
2- Add the missing user access :
This happened to me because I have cleared the NuGet cache.
I did the oldest trick in the book. I restarted my PC and then I was able to restore packages
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