Packages do not restore NugetPackage

0

After upgrading VS2017 to version 15.5.1 this project no longer restores the packages

I tried to remove the packages and install again but did not work, I reinstalled VS did not work well, I researched a little and had some solutions to open VS without the project, open the Package Manager Console and after opening the project but did not work too ...

    
asked by anonymous 14.12.2017 / 17:56

1 answer

1
  

Solution found in the English stack:

1.) Delete the .vs directory at the root of your solution

2) Open open the .config file in all projects and append all binding redirects.

3.) Delete the bin and obj directories of all projects.

Note: When I went through this, it was enough to delete the .vs directory, close the VS and open it again, that the restore started working again. If it does not resolve, it is worth following the other steps.

Link to original response.

  

EDIT:   It should be    avoid special characters in project names, sollution and directories.

    
14.12.2017 / 19:11