码迷,mamicode.com
首页 > 其他好文 > 详细

The EntityFramework package is not installed on project

时间:2017-05-22 11:04:08      阅读:173      评论:0      收藏:0      [点我收藏+]

标签:too   first   安装   使用   1.3   卸载   匹配   exception   bind   

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

标签:too   first   安装   使用   1.3   卸载   匹配   exception   bind   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!