6

任何人都尝试使用实体框架-β8迁移?每次我运行DNX EF命令我得到以下dnu恢复错误(无法找到路径的一部分..)

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

运行DNU恢复则给出了错误

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

任何想法是怎么回事?

编辑

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

+3

尝试删除C:\ Users \ Username \ .dnx \ packages中的所有内容。 确保您的dnvm使用正确的运行时版本('1.0.0-beta8') 然后运行'dnu restore' – Lutando

+0

我使用的是正确版本的dnx,并且在编辑中添加了重命名文件夹但我不知道如果这是正确的方式去了解它 – MRainzo

+0

出于好奇 - 为什么你需要在ASP.NET 5 Owin? ASP.NET 5不需要这个包... – pg0xC

回答

0

我试图@ Lutando的建议,但有一个命令提示符错误

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

如果您收到此,请执行下列操作:

dnvm upgrade 
dnu restore 

然后你应该回到业务

相关问题