我刚刚安装了WebMatrix 3.0.当我单击功能区上的NuGet扩展以加载某些扩展时,我收到一条错误消息,指出安装的NuGret版本(2.2显然)与.Net.Http dll的版本不兼容.我已经尝试通过扩展管理器升级NuGet,但似乎没有办法做到这一点 - 只有一个禁用和卸载选项.关于这里发生了什么的任何想法?为什么与WebMatrix 3.0一起安装了不兼容的NuGet版本?
堆栈跟踪的错误消息如下:
An error occurred.
The schema version of 'Microsoft.Net.Http' is incompatible with version 2.2.31210.9045 of NuGet. Please upgrade NuGet to the latest version from http://go.microsoft.com/fwlink/?LinkId=213942.
System.InvalidOperationException: The schema version of 'Microsoft.Net.Http' is incompatible with version 2.2.31210.9045 of NuGet. Please upgrade NuGet to the latest version from http://go.microsoft.com/fwlink/?LinkId=213942.
at NuGet.Manifest.CheckSchemaVersion(XDocument document)
at NuGet.Manifest.ValidateManifestSchema(XDocument document, String schemaNamespace)
at NuGet.Manifest.ReadFrom(Stream stream, IPropertyProvider propertyProvider)
at NuGet.LocalPackage.ReadManifest(Stream manifestStream)
at NuGet.ZipPackage.EnsureManifest()
at NuGet.ZipPackage..ctor(Func`1 streamFactory, Boolean enableCaching)
at NuGet.PackageDownloader.DownloadPackage(IHttpClient downloadClient, IPackageMetadata …Run Code Online (Sandbox Code Playgroud)