簡體   English   中英

NuGet [Install-Package],NotImplementedException嘗試安裝軟件包或創建mvc 3項目

[英]NuGet [Install-Package], NotImplementedException attempting package install or mvc 3 project creation

嘗試安裝NuGet軟件包時,出現錯誤“未實現方法或操作”。此相同的操作對我的兩個同事均適用。 創建新的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

您正在使用什么版本的NuGet,我最近更新了NuGet的副本以使用EntityFramework。 我必須完全卸載NuGet,然后重新安裝才能使用最新的EntityFramework軟件包,希望對您有所幫助!

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM