dnu restore error (Could not find part of a path..)

asp.net-core code-first-migrations dnu dnx entity-framework-core

Question

Anyone attempt using entity framework-beta8 migrations? Everytime I run the dnx ef command I get the following

"Error: . Please run dnu restore to generate a new lock file"

running dnu restore then gives the error

Could not find a part of the path "c:\users\Username\ .dnx\packages\Owin\1.0.0\Owin.1.0.0.nupkg.sha512

Any idea what's going wrong?

EDIT

Checking it now and the path on the C drive is 1.0 not 1.0.0..that seems to be part of the issue here. Not sure if it was the right thing to do but renaming the folders worked in the end

Popular Answer

I tried @Lutando's suggestion but got a command prompt error

'dnx' is not recognized as an internal or external command, operable program or batch file.

If you get this, do the following:

dnvm upgrade
dnu restore

Then you should be back in business



Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Is this KB legal? Yes, learn why
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Is this KB legal? Yes, learn why