gpt4 book ai didi

.net - Webmatrix 3.0 nuGet 关于 Net.Http 的投诉

转载 作者:行者123 更新时间:2023-12-04 20:08:58 28 4
gpt4 key购买 nike

我刚刚安装了 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 package)
at NuGet.PackageDownloader.DownloadPackage(Uri uri, IPackageMetadata package)
at NuGet.DataServicePackage.EnsurePackage(IPackageRepository cacheRepository)
at NuGet.DataServicePackage.GetSupportedFrameworks()
at NuGet.PackageRepositoryExtensions.<>c__DisplayClass2e.<SupportsTargetFrameworks>b__2d(FrameworkName t)
at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)
at NuGet.PackageRepositoryExtensions.SupportsTargetFrameworks(IEnumerable`1 targetFramework, IPackage package)
at NuGet.PackageRepositoryExtensions.<>c__DisplayClass2b.<GetUpdatesCore>b__26(<>f__AnonymousType19`2 <>h__TransparentIdentifier22)
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at System.Linq.Lookup`2.Create[TSource](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
at System.Linq.GroupedEnumerable`3.GetEnumerator()
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at Microsoft.WebMatrix.NuGet.FilterManager.AddPackagesToFilter(ListViewFilter filter, IEnumerable`1 packages, PackageViewModelAction packageAction)
at Microsoft.WebMatrix.NuGet.FilterManager.<>c__DisplayClass7.<UpdateFilterWithResult>b__6(Task`1 task)
at System.Threading.Tasks.ContinuationTaskFromResultTask`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()

最佳答案

我刚刚遇到了同样的错误消息。解决方案是清除 NuGet 包缓存并重试。

有关如何清除 NuGet 包缓存的更多信息 here .

关于.net - Webmatrix 3.0 nuGet 关于 Net.Http 的投诉,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20984896/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com