首页 \ 问答 \ WebMatrix错误更新NuGet(WebMatrix error updating NuGet)

WebMatrix错误更新NuGet(WebMatrix error updating NuGet)

两天以来,我遇到了一个奇怪的问题。 我正在使用WebMatrix 2(最新,所有更新都已检查)。 我运行NuGet来检查可用的更新。 我看到一些更新,一切都得到了正确的更新,除了NuGet.Core。

我看到最新的NuGet 2.2.0版本可用。 我运行更新,它给了我错误。 说无法找到与NuGet.Core.2.2.0兼容的Microsoft.AspNet.WebPages.Administration版本。 此错误的详细信息是:

An error occurred.

Updating 'NuGet.Core 1.6.2' to 'Nuget.Core 2.2.0' failed. Unable to find a version of 'Microsoft.AspNet.WebPages.Administration' that is compatible with 'Nuget.Core 2.2.0'.

System.InvalidOperationException: Updating 'NuGet.Core 1.6.2' to 'Nuget.Core 2.2.0' failed. Unable to find a version of 'Microsoft.AspNet.WebPages.Administration' that is compatible with 'Nuget.Core 2.2.0'.
   at NuGet.InstallWalker.OnBeforePackageWalk(IPackage package)
   at NuGet.PackageWalker.Walk(IPackage package)
   at NuGet.InstallWalker.ResolveOperations(IPackage package)
   at NuGet.ProjectManager.Execute(IPackage package, IPackageOperationResolver resolver)
   at NuGet.ProjectManager.AddPackageReference(IPackage package, Boolean ignoreDependencies, Boolean allowPrereleaseVersions)
   at NuGet.ProjectManager.UpdatePackageReference(IPackage package, Boolean updateDependencies, Boolean allowPrereleaseVersions)
   at NuGet.ProjectManager.UpdatePackageReference(String packageId, Func`1 resolvePackage, Boolean updateDependencies, Boolean allowPrereleaseVersions, Boolean targetVersionSetExplicitly)
   at NuGet.ProjectManager.UpdatePackageReference(String packageId, SemanticVersion version, Boolean updateDependencies, Boolean allowPrereleaseVersions)
   at Microsoft.WebMatrix.PackageManagement.WebProjectManager.<>c__DisplayClass4.<UpdatePackage>b__3()
   at Microsoft.WebMatrix.PackageManagement.WebProjectManager.PerformLoggedAction(Action action)
   at Microsoft.WebMatrix.PackageManagement.WebProjectManager.UpdatePackage(IPackage package, AppDomain appDomain)
   at Microsoft.WebMatrix.NuGet.NuGetPackageManager.UpdatePackage(IPackage package)
   at Microsoft.WebMatrix.NuGet.NuGetGallery.ExtensibleNuGetPackageManager.UpdatePackage(IPackage package)
   at Microsoft.WebMatrix.NuGet.NuGetModel.UpdatePackage(IPackage package, Boolean isFeatured, Boolean inDetails)
   at Microsoft.WebMatrix.NuGet.PackageViewModel.ExecuteAction(Boolean inDetails)
   at Microsoft.WebMatrix.NuGet.NuGetViewModel.ExecuteNuGetAction(Object completionAction)
   at System.Threading.Tasks.Task`1.InvokeFuture(Object futureAsObj)
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()

这是什么意思? 这里有什么不对。


I'm having a strange problem since two days. I'm using WebMatrix 2 (latest, all updates checked). I run NuGet to check for available updates. I see a few updates, everything gets updated properly, except for NuGet.Core.

I see the latest NuGet version 2.2.0 is available. I run the update and it gives me error. Says unable to find a version of Microsoft.AspNet.WebPages.Administration that is compatible with NuGet.Core.2.2.0. The detail of this error is:

An error occurred.

Updating 'NuGet.Core 1.6.2' to 'Nuget.Core 2.2.0' failed. Unable to find a version of 'Microsoft.AspNet.WebPages.Administration' that is compatible with 'Nuget.Core 2.2.0'.

System.InvalidOperationException: Updating 'NuGet.Core 1.6.2' to 'Nuget.Core 2.2.0' failed. Unable to find a version of 'Microsoft.AspNet.WebPages.Administration' that is compatible with 'Nuget.Core 2.2.0'.
   at NuGet.InstallWalker.OnBeforePackageWalk(IPackage package)
   at NuGet.PackageWalker.Walk(IPackage package)
   at NuGet.InstallWalker.ResolveOperations(IPackage package)
   at NuGet.ProjectManager.Execute(IPackage package, IPackageOperationResolver resolver)
   at NuGet.ProjectManager.AddPackageReference(IPackage package, Boolean ignoreDependencies, Boolean allowPrereleaseVersions)
   at NuGet.ProjectManager.UpdatePackageReference(IPackage package, Boolean updateDependencies, Boolean allowPrereleaseVersions)
   at NuGet.ProjectManager.UpdatePackageReference(String packageId, Func`1 resolvePackage, Boolean updateDependencies, Boolean allowPrereleaseVersions, Boolean targetVersionSetExplicitly)
   at NuGet.ProjectManager.UpdatePackageReference(String packageId, SemanticVersion version, Boolean updateDependencies, Boolean allowPrereleaseVersions)
   at Microsoft.WebMatrix.PackageManagement.WebProjectManager.<>c__DisplayClass4.<UpdatePackage>b__3()
   at Microsoft.WebMatrix.PackageManagement.WebProjectManager.PerformLoggedAction(Action action)
   at Microsoft.WebMatrix.PackageManagement.WebProjectManager.UpdatePackage(IPackage package, AppDomain appDomain)
   at Microsoft.WebMatrix.NuGet.NuGetPackageManager.UpdatePackage(IPackage package)
   at Microsoft.WebMatrix.NuGet.NuGetGallery.ExtensibleNuGetPackageManager.UpdatePackage(IPackage package)
   at Microsoft.WebMatrix.NuGet.NuGetModel.UpdatePackage(IPackage package, Boolean isFeatured, Boolean inDetails)
   at Microsoft.WebMatrix.NuGet.PackageViewModel.ExecuteAction(Boolean inDetails)
   at Microsoft.WebMatrix.NuGet.NuGetViewModel.ExecuteNuGetAction(Object completionAction)
   at System.Threading.Tasks.Task`1.InvokeFuture(Object futureAsObj)
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()

What does it mean? What's wrong here.


原文:https://stackoverflow.com/questions/13882382
更新时间:2022-05-11 12:05

最满意答案

这是因为http://nuget.org/packages/Microsoft.AspNet.WebPages.Administration包依赖于nuget.core NuGet.Core(≥1.6.2&& <1.7),这将不允许它将其更新为更高版本。 我看到这里已经出现了一个问题http://aspnetwebstack.codeplex.com/workitem/435 ,使其与2.x版本兼容。


This is because http://nuget.org/packages/Microsoft.AspNet.WebPages.Administration package has dependency on nuget.core NuGet.Core (≥ 1.6.2 && < 1.7) which won't allow it to update it to a higher version. I see there is already an issue raised here http://aspnetwebstack.codeplex.com/workitem/435 for making it compatible with 2.x version.

相关问答

更多
  • NuGet包恢复不会修改项目文件。 它只是下载并提取NuGet包到packages目录。 如果您尝试编辑packages.config文件,然后更新项目,则必须使用软件包管理器控制台并运行: Update-Package -reinstall 它将再次卸载并安装软件包并更新项目的引用。 We realized that some of our junior developers only installed the required Nuget packages for ONE project in th ...
  • 我怀疑你没有使用最新版本的NuGet。 产品版本需要为2.8.3或更高。 程序集版本将是2.8.5.x,这可能有点令人困惑。 如果您使用的是NuGet.exe,请运行以下命令检查产品版本: NuGet.exe update -self 你应该看到输出: Checking for updates from https://www.nuget.org/api/v2/. Currently running NuGet.exe 2.8.3. NuGet.exe is up to date. 然后运行: NuGe ...
  • 只需重新启动Visual Studio为我工作。 Updating Visual Studio to 'Update 2' got it working again. Tools -> Extensions and Updates ->Visual Studio Update 2 As mentioned in the question and the link i posted therein, I'd already updated NuGet Package Manager to 3.4.4 prio ...
  • 所以我通过nuget更新了所有软件包,但无法更新Microsoft.EntityFrameworkCore.Tools软件包 有一个关键点需要注意。 Microsoft , Microsoft.EntityFrameworkCore.Tools软件包的作者于2017年8月12日发布了新版本2.0 (8/12/2017)(前几天), 它支持:.netstandard2.0 。 但是,SDK 10.0.14393和10.0.15063未被更新为与.netstandard2.0包兼容。 所以,如果你现在安装的软件 ...
  • 这是因为http://nuget.org/packages/Microsoft.AspNet.WebPages.Administration包依赖于nuget.core NuGet.Core(≥1.6.2&& <1.7),这将不允许它将其更新为更高版本。 我看到这里已经出现了一个问题http://aspnetwebstack.codeplex.com/workitem/435 ,使其与2.x版本兼容。 This is because http://nuget.org/packages/Microsoft.A ...
  • 更新NuGet.Core后我得到了同样的错误参考 http://connect.microsoft.com/VisualStudio/feedback/details/752526/method-get-isbindingredirectsupported-in-type-system-web-webpages-administration-packagemanager-webprojectsystem-from-assembly-system-web-webpages-管理-版本2-0-0-0文化中性 通 ...
  • 解决方法 我注意到该库的一个旧的,未使用的版本位于解决方案的packages文件夹中。 我在包管理器控制台中使用以下命令卸载它: Uninstall-Package PackageName -Version PackageVersion 请注意,您需要在上面的命令中替换确切的包名称和版本。 或者,您也可以从packages文件夹中删除该包。 请注意,这并不能解决为什么问题首先发生或如何防止它。 Workaround I noticed that an old, unused version of the ...
  • 问题是SharpMap已经确定了依赖关系 NewtonSoft.Json = 4.5.11 不大于或等于,但完全相同 。 最好的方法是联系包裹的所有者并要求他们放松要求。 正如在这个问题中证明的那样,它并不像它那样有用。 但是,您可以尝试使用-IgnoreDependencies开关: > Install-Package SharpMap -IgnoreDependencies 这只安装SharpMap,因此您需要在以后显式安装所有其他依赖项(NewtonSoft.Json除外): > Install-P ...
  • 您遇到的问题是您的解决方案是使用较新版本的System.IdentityModel.Tokens.Jwt程序集而不是BotBuilder Nuget所期望的程序集。 解决问题: 从您的解决方案中卸载当前的System.IdentityModel.Tokens.Jwt Nuget 安装BotBuilder Nuget。 这应该添加一个对System.IdentityModel.Tokens.Jwt的新引用 The problem you are having is that your solution is ...
  • Finnaly发现了问题:我的项目名称太靠近Nuget.Server 使用远离Nuget.Server的名称,服务器重新启动它应该运行。 Finnaly found the problem : the name of my project was too close to Nuget.Server With a name far away from Nuget.Server, the server restart running as it should.

相关文章

更多

最新问答

更多
  • 如何重新加载下拉列表(How to reload dropdownlist)
  • RStudio:在脚本中保留特殊字符(RStudio: keeping special characters in a script)
  • Powershell的“GetLatest”不会在新的TFS工作区上下载文件(“GetLatest” with Powershell doesn't download files on new TFS workspace)
  • 我如何让JS识别一个由字符组成的数组?(How do I get JS to recognise an array insted of characters?)
  • EF从存储过程中急切加载(EF eager loading from stored procedure)
  • 将输出文件添加到Python扩展(Adding output file to Python extension)
  • 淮北职业技术学院电脑应用专业咋样?
  • 更改默认扩展面板箭头的箭头样式(Change arrow style for default expansion panel arrow)
  • 芜湖计算机(计算机)培训机构(培训班,学校)哪家好
  • 致命错误:使用clang-llvm ASTMatcher时未找到'stddef.h'文件(fatal error: 'stddef.h' file not found when using clang-llvm ASTMatcher)
  • 内容的.NET缓存(Contentful .NET caching)
  • 客户端没有发生WCF回调(WCF callback is not happening in client)
  • 使用friend在全局范围内调用类成员函数会产生27个错误(Calling a Class member function in Global Scope using friend Gives 27 ERRORS)
  • 如何绑定到WPF中的另一个控件属性(How to Bind to Another Control Property in WPF)
  • 南华大学电脑专业,就业好不好
  • 是否存在泄密文件的官方(或常见)文件扩展名或后缀?(Is there an official (or common) file extention or suffix for deflated files?)
  • 在SVM python中只训练一次(Training only once in SVM python)
  • 淘汰自定义绑定光滑js无法正常工作(knockout custom binding for slick js not working)
  • 似乎无法正确地抓住网站“福布斯”(Can't seem to scrape the website “Forbes” properly)
  • 无法使用boto.rds2从describe_instance方法检索有关db实例的信息(Not able to retrieve information about db instances from the describe_instance method using boto.rds2)
  • 转换为英国日期格式问题(Convert to british date format issue)
  • 在表中列出不同的元组(10种方法)(List distinct tuples in a table(SQL query)(10 ways))
  • OrientDB查询比较(OrientDB query compare)
  • 全局变量有什么不好?(What is so bad about global variables? [duplicate])
  • 为什么JavaMail Transport.send()是一个静态方法?(Why is JavaMail Transport.send() a static method?)
  • 获取最近3个Instagram图像张贴在一个地方(Get last 3 instagram images posted in a place)
  • 使用libnfc格式化/读/写NDEF Mifare 1K卡(Format/Read/Write NDEF Mifare 1K Card using libnfc)
  • 阻止谷歌索引特定图像(Block Google from indexing a particular image)
  • 消息模板接收让Dispatcher没有订阅频道(Message Template receive gives Dispatcher has no subscribers for channel)
  • OpenShift:使用自定义节点版本(OpenShift: Use custom node version)