2012-03-30 83 views
0

嘗試安裝NuGet包時出現錯誤「方法或操作未實現」。這一操作對我的兩位同事都適用。當創建一個新的Mvc 3應用程序時,我在對話框中得到相同的錯誤:「該方法或操作未實現。」有人知道這裏發生了什麼嗎?NuGet [Install-Package],NotImplementedException嘗試安裝包或創建mvc 3項目

install-package entityframework -verbose 
You are downloading EntityFramework from Microsoft, the license agreement to which is available at http://go.microsoft.com/fwlink/?LinkId=242868. 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. 
Added file 'App.config.transform' to folder 'EntityFramework.4.3.1\Content'. 
Added file 'Web.config.transform' to folder 'EntityFramework.4.3.1\Content'. 
Added file 'EntityFramework.dll' to folder 'EntityFramework.4.3.1\lib\net40'. 
Added file 'EntityFramework.xml' to folder 'EntityFramework.4.3.1\lib\net40'. 
Added file 'EF4.3on.NET4.5Readme.txt' to folder 'EntityFramework.4.3.1\tools'. 
Added file 'EntityFramework.PowerShell.dll' to folder 'EntityFramework.4.3.1\tools'. 
Added file 'EntityFramework.psd1' to folder 'EntityFramework.4.3.1\tools'. 
Added file 'EntityFramework.psm1' to folder 'EntityFramework.4.3.1\tools'. 
Added file 'init.ps1' to folder 'EntityFramework.4.3.1\tools'. 
Added file 'install.ps1' to folder 'EntityFramework.4.3.1\tools'. 
Added file 'migrate.exe' to folder 'EntityFramework.4.3.1\tools'. 
Added file 'EntityFramework.4.3.1.nupkg' to folder 'EntityFramework.4.3.1'. 
Successfully installed 'EntityFramework 4.3.1'. 
Executing script file 'C:\Users\JRT3ZHJ\Documents\Visual Studio 2010\Projects\MvcApplication5\packages\EntityFramework.4.3.1\tools\init.ps1'. 
'packages.config' already exists. Skipping... 
Removed file 'EntityFramework.dll' to folder 'C:\Users\JRT3ZHJ\Documents\Visual Studio 2010\Projects\MvcApplication5\packages\EntityFramework.4.3.1\lib\net40'. 
Removed file 'EntityFramework.xml' to folder 'C:\Users\JRT3ZHJ\Documents\Visual Studio 2010\Projects\MvcApplication5\packages\EntityFramework.4.3.1\lib\net40'. 
Removed folder 'C:\Users\JRT3ZHJ\Documents\Visual Studio 2010\Projects\MvcApplication5\packages\EntityFramework.4.3.1\lib\net40'. 
Removed file 'App.config.transform' to folder 'C:\Users\JRT3ZHJ\Documents\Visual Studio 2010\Projects\MvcApplication5\packages\EntityFramework.4.3.1\Content'. 
Removed file 'Web.config.transform' to folder 'C:\Users\JRT3ZHJ\Documents\Visual Studio 2010\Projects\MvcApplication5\packages\EntityFramework.4.3.1\Content'. 
Removed folder 'C:\Users\JRT3ZHJ\Documents\Visual Studio 2010\Projects\MvcApplication5\packages\EntityFramework.4.3.1\Content'. 
Removed file 'EF4.3on.NET4.5Readme.txt' to folder 'C:\Users\JRT3ZHJ\Documents\Visual Studio 2010\Projects\MvcApplication5\packages\EntityFramework.4.3.1\tools'. 
Removed file 'EntityFramework.PowerShell.dll' to folder 'C:\Users\JRT3ZHJ\Documents\Visual Studio 2010\Projects\MvcApplication5\packages\EntityFramework.4.3.1\tools'. 
Removed file 'EntityFramework.psd1' to folder 'C:\Users\JRT3ZHJ\Documents\Visual Studio 2010\Projects\MvcApplication5\packages\EntityFramework.4.3.1\tools'. 
Removed file 'EntityFramework.psm1' to folder 'C:\Users\JRT3ZHJ\Documents\Visual Studio 2010\Projects\MvcApplication5\packages\EntityFramework.4.3.1\tools'. 
Removed file 'init.ps1' to folder 'C:\Users\JRT3ZHJ\Documents\Visual Studio 2010\Projects\MvcApplication5\packages\EntityFramework.4.3.1\tools'. 
Removed file 'install.ps1' to folder 'C:\Users\JRT3ZHJ\Documents\Visual Studio 2010\Projects\MvcApplication5\packages\EntityFramework.4.3.1\tools'. 
Removed file 'migrate.exe' to folder 'C:\Users\JRT3ZHJ\Documents\Visual Studio 2010\Projects\MvcApplication5\packages\EntityFramework.4.3.1\tools'. 
Removed folder 'C:\Users\JRT3ZHJ\Documents\Visual Studio 2010\Projects\MvcApplication5\packages\EntityFramework.4.3.1\tools'. 
Removed folder 'C:\Users\JRT3ZHJ\Documents\Visual Studio 2010\Projects\MvcApplication5\packages\EntityFramework.4.3.1\lib'. 
Removed file 'EntityFramework.4.3.1.nupkg' to folder 'C:\Users\JRT3ZHJ\Documents\Visual Studio 2010\Projects\MvcApplication5\packages\EntityFramework.4.3.1'. 
Removed folder 'C:\Users\JRT3ZHJ\Documents\Visual Studio 2010\Projects\MvcApplication5\packages\EntityFramework.4.3.1'. 
Successfully uninstalled 'EntityFramework 4.3.1'. 
Install failed. Rolling back... 
Install-Package : The method or operation is not implemented. 
At line:1 char:16 
+ install-package <<<< entityframework -verbose 
+ CategoryInfo : NotSpecified: (:) [Install-Package], NotImplementedException 
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand 
+0

你有沒有解決這個問題?我有同樣的問題。 – Dave 2014-05-21 22:08:13

回答

0

什麼版本的NuGet您使用的是,我最近更新了我的NuGet的副本中才能使用的EntityFramework。我不得不完全卸載NuGet,然後重新安裝,以便使用最新的EntityFramework軟件包,希望這有助於!

+0

版本1.6.21215.9133。我嘗試重新安裝NuGet,並且當它沒有運行visual studio和sp1時。 – 2012-03-30 23:04:19

+0

這發生在其他包上,除了實體框架。 MvcSiteMap提供程序,Mvc3項目創建。 – 2012-03-30 23:07:42

+0

所以它完全重新安裝VS後仍然發生? – Goldentp 2012-04-02 15:12:27