简体   繁体   中英

Visual Studio Nuget unable to install any package

I am using Visual Studio 2017 and While trying download even the simplest package, I am getting Following error:

Error downloading 'EntityFramework.6.1.3' from ' https://www.nuget.org/api/v2/package/EntityFramework/6.1.3 '. The process cannot access the file 'C:\\Users\\myUsername\\.nuget\\packages\\entityframework\\6.1.3\\lib\\net40\\EntityFramework.dll' because it is being used by another process. Time Elapsed: 00:01:03.5336627 ========== Finished

I solved my problem by uninstalling the visual studio and then reinstall it to make it work. 3 hours wasted.

EDIT: Again got the error but this time I was lucky. There was one process VBCSCompiler.exe . I had to kill it manually using Window Task Manager and it starts working. I don't know this will work for others but it worked for me so just sharing it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM