I had this error in different situation. I checked contents of Nuget.config in my solution folder and under node it had an entry pointing to ./nuget. This folder didn't exist in the solution directory, so I just created an empty folder with this name and the solution compiled without any problems.