azure-devops - 使用 NU1101 构建失败:找不到包 Microsoft.Bot.Protocol.StreamingExtensions.NetCore
问题描述
我正在尝试使用 Azure DevOps 和 BotFramework 设置 DevOps 管道。由于Microsoft.Bot.Protocol.StreamingExtensions.NetCore
包含错误的软件包,我的构建失败NU1101: Unable to find package Microsoft.Bot.Protocol.StreamingExtensions.NetCore. No packages exist with this id in source(s): NuGetOrg
我试图卸载这个包,但后来我开始在本地收到同样的错误。当我尝试重新安装时,我在 NuGet 上找不到包,这可能就是发生此错误的原因,因此我不得不恢复到以前的提交以获取我的机器人的工作版本。
在 Azure DevOps 上构建项目时,预计能够安装该包。对此的任何帮助表示赞赏。
解决方案
使用 NU1101 构建失败:找不到包 Microsoft.Bot.Protocol.StreamingExtensions.NetCore
那是因为包Microsoft.Bot.Protocol.StreamingExtensions.NetCore
只发布到myget.org
Notnuget.org
。这也是错误消息显示源中的此 id: NuGetOrg 的原因。
您可以在以下位置找到该包myget.org
:
https://botbuilder.myget.org/gallery/experimental
然后获取连接feed的URL是:
https://botbuilder.myget.org/F/experimental/api/v3/index.json
要在 Azure DevOps 上解决此问题,您可以nuget.config
在解决方案文件夹下添加一个包含以下内容的文件夹:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="MyGetFeed" value="https://botbuilder.myget.org/F/experimental/api/v3/index.json" />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
</packageSources>
</configuration>
然后提交并将此文件推送到 Azure Devops 存储库。还原 nuget 包时使用此文件:
作为测试,它在我这边运行良好。
希望这可以帮助。
推荐阅读
- python-3.x - 用数据框中的属性值替换类对象
- variables - 如何在 ssis 包中的变量中获取当前周星期一的日期
- javascript - nextjs 使用静态类名添加动态类名
- c# - 字典
尽管找到了预期值,但 ShouldContainKeyAndValue 未能通过单元测试 - enaml - 有没有办法将 qtawesome 与 enaml 一起使用?
- r - 如何使用 terra 包在 freq 函数的输出中添加图层名称?
- django - 在 django 中等待 HTTP 请求时轮询的更好选择?
- android - Android Studio 无法运行 Flutter 项目
- azure - 将自定义参数传递到 Azure 数据工厂中的存储过程
- javascript - 我可以在特定媒体查询中将 HTML DOM 转换为图像吗?