【发布时间】:2017-08-29 18:13:35
【问题描述】:
我们有一个基于 Azure 托管代理的 ASP.NET Core 项目。几天前,由于未知原因,托管代理上的构建开始在 dotnet restore 命令中失败并显示以下消息:
无法解析“.NETCoreApp,Version=v1.1.1”的“System.IO.Pipelines (>= 0.1.0-e170328-3)”。 无法为“.NETCoreApp,Version=v1.1.1”解析“System.Text.Encodings.Web.Utf8 (>= 0.1.0-e170328-3)”。
Visual Studio 中的构建工作正常。最初该解决方案是在 Visual Studio 2015 中创建的,然后在尝试解决该问题时,我将其转换为 Visual Studio 2017,但结果仍然相同。 有谁知道这可能发生的原因以及在哪里寻找解决方案?
【问题讨论】:
-
System.IO.Pipelines和System.Text.Encodings.Web.Utf8是 Corefx 实验室的一部分。这些是实验包,您不会在 nuget.org 中找到它们。也许您忘记在您的项目中添加the myget source?https://dotnet.myget.org/F/dotnet-corefxlab/或https://dotnet.myget.org/F/dotnet-corefxlab/api/v3/index.json -
是的,添加 dotnet.myget.org/F/dotnet-corefxlab 有帮助。非常感谢!请将其添加为答案,我会接受。
标签: c# asp.net visual-studio azure asp.net-core