利用 NuGet来安装EFCodeFirst 神马情况
在 Visual Studio 里面 遇到的一个问题
当我点击了 安装按钮的时候跳出一个对话框
This package(or one of its dependencies ) contains PowerShell scripts and needs to be installed from the Package Manager console.
试过这个方法以后 我又在网上找了 一下
就是在控制台
PM> get-package -remote -filter entityframework
Id Version Description
-- ------- -----------
BinbinMemberShipEntityFrameworkCodeFirst 1.0.0.0 membership entityframework codefirst
BinbinMemberShipEntityFrameworkCodeFirst 1.0.0.1 2011-08-15:添加类...
Check_My_Box_Packages 1.1.0.2 This Package uses MvcScaffolding, EntityFr...
Check_My_Box_Packages 1.1.0.3 This Package uses MvcScaffolding, EntityFr...
EFCodeFirst 1.0 Legacy package, Code First is now included...
EFCodeFirst 1.1 Legacy package, Code First is now included...
EntityFramework 4.1.10311.0 DbContext API and Code First workflow for ...
EntityFramework 4.1.10331.0 DbContext API and Code First workflow for ...
EntityFramework 4.1.10715.0 DbContext API and Code First workflow for ...
EntityFramework.CodeFirst.TestHelpers 0.1 This package aims to make testing Entity F...
EntityFramework.Extensions 0.0.1 A couple useful extensions for creating DB...
EntityFramework.Extensions 0.0.2 A couple useful extensions for creating DB...
EntityFramework.Migrations 0.6.0.0 Code First Migrations Alpha 2
EntityFramework.Migrations 0.6.1.0 Code First Migrations Alpha 2
EntityFramework.Migrations 0.6.2.0 Code First Migrations Alpha 2
EntityFramework.Migrations 0.7.0.0 Code First Migrations Alpha 3
EntityFramework.Patterns 0.2 Provides different patterns to be used wit...
EntityFramework.Patterns 0.5 EntityFramework.Patterns provides differen...
EntityFramework.Preview 4.2.0.0 Entity Framework 4.2 Beta 1. DbContext API...
EntityFramework.Preview 4.2.0.1 Entity Framework 4.2 Release Candidate. Db...
EntityFramework.Sample 4.1 This sample blog model demonstrates the us...
EntityFramework.SqlMigrations 0.5.10727.0 Preview of Code First Migrations for SQL S...
EntityFramework.SqlMigrations 0.6.0.0 Legacy package, use EntityFramework.Migrat...
EntityFramework.SqlServerCompact 4.1.8482.1 Allows SQL Server Compact 4.0 to be used w...
EntityFramework.SqlServerCompact 4.1.8482.2 Allows SQL Server Compact 4.0 to be used w...
EntityFrameworkProfiler 1.0.0.917 EntityFramework Profiler is a real-time vi...
FSRepository 1.0.0.0 FSRepository provides a quick way of creat...
FSRepository 2.0.0.0 FSRepository provides a quick way of creat...
ImtModelsStarter 0.5.6 .Net models starter project that sets up t...
ImtModelsStarter 0.5.7 .Net models starter project that sets up t...
ImtModelsStarter 0.5.8 .Net models starter project that sets up t...
ImtModelsStarter 0.5.9 .Net models starter project that sets up t...
NCommon.EntityFramework 1.2 NCommon data adapter for Entity Framework
NContext.Persistence.EntityFramework 1.0 Entity Framework 4.1 support for NContext.
NContext.Persistence.EntityFramework 1.1 Entity Framework 4.1 support for NContext.
NContext.Persistence.EntityFramework 1.2 Entity Framework 4.1 support for NContext.
NContext.Persistence.EntityFramework 1.3 Entity Framework 4.1 support for NContext.
NContext.Persistence.EntityFramework 1.5 Entity Framework 4.1+ support for NContext.
NContext.Persistence.EntityFramework 1.5.1 Entity Framework 4.1+ support for NContext.
NContext.Persistence.EntityFramework 1.5.2 Entity Framework 4.1+ support for NContext.
netfx-Patterns.DomainContext.EF 1.0.0.0 Implements the Domain Context pattern for ...
RIAServices.EntityFramework 4.1.60629.0 WCF RIA Services EntityFramework 4.1 Support
RIAServices.EntityFramework 4.1.60730.0 WCF RIA Services Toolkit- WCF RIA Services...
RiaServices.EntityFramework.Scaffolding 0.1 Scaffolds a WCF RIA DbDomainService for yo...
RIAServices.Toolkit.All 4.1.60730.0 WCF RIA Services Toolkit - All NuGet Packa...
RIAServices.Toolkit.All 4.1.60730.1 WCF RIA Services Toolkit - All NuGet Packa...
RiaServicesContrib.EntityFramework.Scaffolding 0.2 Scaffolds a WCF RIA DbDomainService for yo...
Unity.Mvc3.EntityFramework.Quickstart 0.5 Quickstart sample for using Unity and Enti...
Unity.Mvc3.EntityFramework.Quickstart 0.6 Legacy package. Please use this package: q...
Unity.Mvc3.EntityFramework.Quickstart 0.7 Legacy package. Please use this package: q...
PM> install-package -id EntityFramework
Install-Package : 未声明“schemaVersion”特性。
所在位置 行:1 字符: 16
+ install-package <<<< -id EntityFramework
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGet.VisualStudio.Cmdlets.InstallPackageCmdlet
PM>
请教一下
[解决办法]
PM> Install-Package EFCodeFirst
[解决办法]
install-package -id EntityFramework -Version 4.1.10331.0
没打版本号
[解决办法]
同样问题,Install-Package EFCodeFirst 解决了。偶也!
[解决办法]
同意 Install -Package EFCodeFirst