安装EntityFramework5

利用NuGet更新entity framework是出现

“This package (or one of its dependencies) contains an init.ps1 file and need.."的错误

后来在网上看了篇文章http://blog.sharechiwai.com/2012/05/this-package-or-one-of-its-dependencies-contains-an-init-ps1-file-and-needs-to-be-installed-from-the-package-manager-console/,按着里面的配置来做可以了

當我嘗試使用NuGet來更新EntityFrameworkReference 時出現了以下的錯誤信息…
This package (or one of its dependencies) contains an init.ps1 file and needs to be installed from the Package Manager Console.
This package (or one of its dependencies) contains an init.ps1 file and needs to be installed from the Package Manager Console.

說要使用Package Manager Console 才可以進行安裝..
由於我對NuGet不知熟識…
所以便要花一些時候來做Research 看看怎樣使用NuGet的 Package Manager Console.

解決方法:
原來Package Manager Console 應該是在Visual Studio 左下方的分頁上的

如果找不到的話可以用以下的方法開啟
Tools” ->”Library Package Manager” -> 選擇 “Package Manager Console

開啟之後可以在Console上輸入以下指令來安裝Entity Framework的更新
Install-Package EntityFramework
Install-Package EntityFramework
Update Entity Framework Completed

NuGet Update Entity Framework Completed
Hope you find it useful

原文地址:https://www.cnblogs.com/yuanyuan/p/2781531.html