gpt4 book ai didi

asp.net - DNU 在 OSX Yosemite 上恢复未知 header

转载 作者:行者123 更新时间:2023-12-01 11:32:13 27 4
gpt4 key购买 nike

我曾多次尝试使用官方 Asp.Net 文档和其他地方的说明让 .Net 在我的 MacBook 上运行。最近的尝试是使用找到的 Yeoman 生成器指令 here .

然而,当我尝试运行 DNU Restore 时,我总是遇到同样的错误,尽管是针对不同的库。错误是“unknown header:”后跟一个数字,该数字因库而异。这是一个示例(为简洁起见,仅包含前几行和最后几行):

Error: DownloadPackageAsync: https://www.nuget.org/api/v2/package/Microsoft.AspNet.Loader.IIS/1.0.0-beta5
Unknown header: 3649249205
----------
System.NotSupportedException: Unknown header: 3649249205
at SharpCompress.Common.Zip.ZipHeaderFactory.ReadHeader (UInt32 headerBytes, System.IO.BinaryReader reader) [0x00000] in <filename unknown>:0
at SharpCompress.Common.Zip.SeekableZipHeaderFactory+<ReadSeekableHeader>c__Iterator0.MoveNext () [0x00000] in <filename unknown>:0
at SharpCompress.Archive.Zip.ZipArchive+<LoadEntries>c__Iterator0.MoveNext () [0x00000] in <filename unknown>:0
at SharpCompress.LazyReadOnlyCollection`1+LazyLoader[SharpCompress.Archive.Zip.ZipArchiveEntry].MoveNext () [0x00000] in <filename unknown>:0
at System.IO.Compression.ZipArchive.CreateZip (System.IO.Stream stream, ZipArchiveMode mode) [0x00000] in <filename unknown>:0
at System.IO.Compression.ZipArchive..ctor (System.IO.Stream stream, ZipArchiveMode mode, Boolean leaveOpen) [0x00000] in <filename unknown>:0
at Microsoft.Framework.PackageManager.Restore.NuGet.PackageUtilities.EnsureValidPackageContents (System.IO.Stream stream, Microsoft.Framework.PackageManager.PackageInfo package) [0x00000] in <filename unknown>:0
at Microsoft.Framework.PackageManager.Restore.NuGet.PackageUtilities+<>c__DisplayClass1_0.<OpenNupkgStreamAsync>b__0 (System.IO.Stream stream) [0x00000] in <filename unknown>:0
at Microsoft.Framework.PackageManager.Restore.NuGet.HttpSource+<GetAsync>d__8.MoveNext () [0x00000] in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <filename unknown>:0
at Microsoft.Framework.PackageManager.Restore.NuGet.PackageUtilities+<OpenNupkgStreamAsync>d__1.MoveNext () [0x00000] in <filename unknown>:0

...

Restore failed
Unknown header: 3649249205

NuGet Config files used:
/Users/jamie.morris/.config/NuGet/NuGet.Config

Feeds used:
https://www.myget.org/F/aspnetvnext/api/v2/
https://nuget.org/api/v2/

我已经尝试删除 ~/.dnx/packages 的内容并从 ~/.dnx/runtimes 中删除旧版本的 dnx。目前我使用的是 1.0.0-beta6-12170 运行时。

有没有其他人遇到过类似的问题或想出了解决方法?

编辑:

这是 dnvm list 的输出:

Active Version              Runtime Arch Location             Alias
------ ------- ------- ---- -------- -----
* 1.0.0-beta6-12170 mono ~/.dnx/runtimes default

这是 mono --version 的输出:

Mono JIT compiler version 3.12.1 (tarball Tue Mar 17 15:03:14 GMT 2015)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: normal
SIGSEGV: altstack
Notification: kqueue
Architecture: amd64
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: sgen

最佳答案

升级到 Mono 4.0.1 或更高版本。

关于asp.net - DNU 在 OSX Yosemite 上恢复未知 header ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31250444/

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