Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

dnu restore from from Visual Studio 2015 Update 1 RC

Whenever I modify packages through the project.json file my references area says "Errors - see Error List". The error list will say "Dependencies in project.json were modified. Please run "dnu restore" to generate a new lock file.

In there a way to do this from within Visual Studio? I am having to load the Developer Command Prompt for 2015 and cd to the project directory and run the command through there,

If I right click on the references and select "Restore Packages" (which sounds like it should do it) it just says the above "see Error List".

like image 462
eddpoints Avatar asked Nov 25 '15 22:11

eddpoints


1 Answers

I have found the real solution that fixed the issue (at least for me). What happens is that the "dnu restore" is apparently linked to Nuget, even if you referencing your own project in the same solution. So actually instead of doing "dnu restore" you can just right click on solution/references and chose restore packages. That does the trick.

To make that happen automatically you need to go to Tools->Options-> NuGet Package Manager and check "Allow download missing packages" and "Automatically check on build". The last one seems to be weird because you don't build, but that what triggers VS to restore the packages properly.

like image 182
Ilya Chernomordik Avatar answered Sep 17 '22 20:09

Ilya Chernomordik