首页 > 其他 > 详细

The EntityFramework package is not installed on project

时间:2017-05-22 10:44:40      阅读:1512      评论:0      收藏:0      [点我收藏+]

VS2015 使用EF的code first 报错

Get-Package : 找不到与参数名称“ProjectName”匹配的参数。
所在位置 packages\EntityFramework.6.1.3\tools\EntityFramework.psm1:611 字符: 40
+     $package = Get-Package -ProjectName <<<<  $project.FullName | ?{ $_.Id -eq ‘EntityFramework‘ }
    + CategoryInfo          : InvalidArgument: (:) [Get-Package], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,NuGet.PowerShell.Commands.GetPackageCommand

 

The EntityFramework package is not installed on project

解决方案:

将nuget升级到最高版本,如果nuget无法升级,卸载后重新安装就可以了。

 

The EntityFramework package is not installed on project

原文:http://www.cnblogs.com/eggTwo/p/6888363.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!