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 看看怎樣使用NuGetPackage 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

Leave a Reply