简体   繁体   English

缺少Nuget软件包

[英]Missing Nuget packages

I just got back to an old project of mine and I noticed I had some nuget packages I have to restore, which I've had in the past but than I could go to the console and it would ask me if I wanted to restore my packages. 我刚回到我的一个旧项目,我发现我有一些必须还原的nuget程序包,这是我过去所拥有的,但是我无法进入控制台,它会问我是否要还原我的程序包。包。 And the times I haven't gotten that prompt I could always run this command Update-Package –reinstall 而且我还没有得到提示的时间,我总是可以运行此命令Update-Package –reinstall

How ever none of this solves my problem, the packages I am missign are: 这些都不能解决我的问题,我错过了的软件包是:

EntityFramework
System.Web.Helpers
System.Web.Mvc
System.Web.WebPages

You have to enable Nuget Package Restore for your project. 您必须为项目启用Nuget软件包还原。 If that is not working then locate .nuget folder. 如果这不起作用,则找到.nuget文件夹。 In windows command line change the directory to .nuget folder of your project and then run 在Windows命令行中,将目录更改为项目的.nuget文件夹,然后运行

nuget restore Solution.sln

You have to specify the full path of your .sln file. 您必须指定.sln文件的完整路径。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM