WebMatrix错误更新NuGet

时间:2012-12-14 16:13:48

标签: asp.net nuget webmatrix

两天以来,我遇到了一个奇怪的问题。我正在使用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()

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

1 个答案:

答案 0 :(得分:0)

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