欧美性猛交XXXX免费看蜜桃,成人网18免费韩国,亚洲国产成人精品区综合,欧美日韩一区二区三区高清不卡,亚洲综合一区二区精品久久

打開(kāi)APP
userphoto
未登錄

開(kāi)通VIP,暢享免費電子書(shū)等14項超值服

開(kāi)通VIP
VS2010 MVC3利用NuGet來(lái)安裝EFCodeFirst package失敗解決方法

VS2010 MVC3利用NuGet來(lái)安裝EFCodeFirst package失敗解決方法

背景①:利用NuGet來(lái)安裝EFCodeFirst方法

①我們可以利用NuGet包管理器(安裝ASP.NET MVC3時(shí)會(huì )自動(dòng)安裝)來(lái)把EFCodeFirst類(lèi)庫添加到我們的Mvc工程中。這個(gè)類(lèi)庫使得我們可以直接使用code-first。點(diǎn)擊“工具”菜單下的“Library Package Manager”子菜單下的“Add Library Package Reference”菜單選項;

②點(diǎn)擊“Add Library Package Reference”菜單選項后,將會(huì )彈出一個(gè)對話(huà)框,標題為“Add Library Package Reference”;

③默認狀態(tài)下,左邊的“All”選項處于選擇狀態(tài)。因為還沒(méi)有安裝任何包,所以右邊面板中顯示“找不到任何項”。點(diǎn)擊左邊面板中的“online”選項,NuGet包管理器將會(huì )在服務(wù)器上檢索所有當前能夠獲取的包;

④服務(wù)器上有幾百個(gè)當前能夠獲取的包,現在我們只關(guān)注EFCodeFirst包。在右上角的搜索輸入框中輸入“EFCode”。在檢索結果中,選擇EFCodeFirst包,并且點(diǎn)擊Install按鈕安裝包;

⑤點(diǎn)擊了install按鈕后,會(huì )彈出一個(gè)接受許可證窗口,在這個(gè)窗口中必須要點(diǎn)擊“I Accept”按鈕,接受許可證條款,安裝才能繼續進(jìn)行。

⑥安裝完畢后,點(diǎn)擊close按鈕。我們的Mvc工程中會(huì )自動(dòng)加載EntityFramework程序集,其中包含了EFCodeFirst類(lèi)庫。

背景②:讓事實(shí)說(shuō)話(huà)

今天在Win 7下利用NuGet來(lái)安裝EFCodeFirst package時(shí),出現錯誤:This package(or one of its dependencies) contains PowerShell scripts and needs to be installed from the Package Manager Console。

師兄的XP下出現該提示的解決方法是打一個(gè)微軟的補丁KB968930,下載地址:

http://www.microsoft.com/downloads/zh-cn/results.aspx?freetext=KB968930&displaylang=zh&stype=s_basic

里面有XP,Vista,Windows Server 2003及2008的32位,64位版本,但是沒(méi)有Win 7版本的,

微軟對該補丁的描述如下:

Windows XP 更新程序 (KB968930)
Windows Management Framework Core 程序包提供了適用于 IT 專(zhuān)業(yè)人員的已更新管理功能。

用于 Windows Server 2008 的 Windows PowerShell 2.0 和 WinRM 2.0 (KB968930)
Windows Management Framework Core 程序包包括 Windows PowerShell 2.0 和 Windows Remote Management (WinRM) 2.0。

解決鳥(niǎo):后來(lái)根據提示找到了一個(gè)在控制臺進(jìn)行安裝的解決方法:

①博客園原文內容如下:

I tried to install EntityFramework 4.1 on VS 2010 through NuGet. I searched and found the package through “Tools > Library Package Manager > Add Library Package Reference” tool and I got this error: “This package (or one of its dependencies) contains powershell scripts and needs to be installed from the package manager console.”. This is what I did to fix it:

Tools > Library Package Manager > Package Manager Console
PM > get-package -remote -filter entityframework
(got some results including EntityFramework 4.1.10311.0)
PM > install-package -id EntityFramework
Successfully added ‘EntityFramework …

②根據提示,在控制臺安裝會(huì )出現如下信息(以下藍色內容為需要輸入的命令):

Each package is licensed to you by its owner. Microsoft is not responsible for, nor does it grant any licenses to, third-party packages. Some packages may include dependencies which are governed by additional licenses. Follow the package source (feed) URL to determine any dependencies.

PM> get-package -remote -filter entityframework

Id Version Description
– ——- ———–
Check_My_Box_Packages 1.1.0.2 This Package uses MvcScaffolding, EntityFramew…
Check_My_Box_Packages 1.1.0.3 This Package uses MvcScaffolding, EntityFramew…
EFCodeFirst 1.0 Legacy package, Code First is now included in …
EFCodeFirst 1.1 Legacy package, Code First is now included in …
EntityFramework 4.1.10311.0 DbContext API and Code First workflow for ADO….
EntityFramework 4.1.10331.0 DbContext API and Code First workflow for ADO….
EntityFramework.Patterns 0.2 Provides different patterns to be used with En…
EntityFramework.Sample 4.1 This sample blog model demonstrates the use of…
EntityFramework.SqlServerCompact 4.1.8482.1 Allows SQL Server Compact 4.0 to be used with …
EntityFrameworkProfiler 1.0.0.839 EntityFramework Profiler is a real-time visual…

PM> install-package -id EntityFramework
You are downloading EntityFramework from Microsoft, the license agreement to which is available at http://go.microsoft.com/fwlink/?LinkID=211010. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device.
已成功安裝“EntityFramework 4.1.10331.0”
已成功將“EntityFramework 4.1.10331.0”添加到 MvcMovie

PM>
安裝EFCodeFirst package 步驟如下:
1假如你安裝了asp.net mvc3了。。你就可以進(jìn)行下面安裝
 
 
 
 
 
 上面就是安裝步驟和錯誤信息。最上面是解決方法。我也是網(wǎng)上找來(lái)的解決方法。。所以共享下,希望對使用者有所幫助

本站僅提供存儲服務(wù),所有內容均由用戶(hù)發(fā)布,如發(fā)現有害或侵權內容,請點(diǎn)擊舉報。
打開(kāi)APP,閱讀全文并永久保存 查看更多類(lèi)似文章
猜你喜歡
類(lèi)似文章
EFCodeFirst安裝失?。ò珽ntityFrameWork安裝)解決方案
Asp.Net EF Code First 簡(jiǎn)單入門(mén)
EFCodeFirst安裝失?。ò珽ntityFrameWork安裝)解決規劃
Windows Server 2016 安裝 Docker的過(guò)程及遇到問(wèn)題
Nuget Tool
WPF新手實(shí)踐9:NuGet的安裝及初次使用
更多類(lèi)似文章 >>
生活服務(wù)
分享 收藏 導長(cháng)圖 關(guān)注 下載文章
綁定賬號成功
后續可登錄賬號暢享VIP特權!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服

欧美性猛交XXXX免费看蜜桃,成人网18免费韩国,亚洲国产成人精品区综合,欧美日韩一区二区三区高清不卡,亚洲综合一区二区精品久久