在UWP应用程序中使用Microsoft.bot.Connector.DirectLine

问题描述 投票:1回答:1

我目前正在尝试使用UWP应用程序与机器人(使用Microsoft Bot Framework制作)进行通信。

我正进入(状态

Severity Code Description Project File Lin Suppression State Error Cannot resolve Assembly or Windows Metadata file 'Type universe cannot resolve assembly: Microsoft.Rest.ClientRuntime, Version=2.0.0.0, Culture=neutral, PublicKeyToken={my token}.' {project name and path}

当我在安装Microsoft.bot.Connector.DirectLine nuget之后构建项目时。

我在一个完全空白的UWP应用程序中试过这个。 (使用默认空白页面)。

我尝试重新启动Visual Studio和项目,以及创建一个新项目。

我使用的是nuget版本3.0.2,但我尝试将所有版本都包含在3.0.0中。 Windows和Visual Studio都是最新的。我也禁用了我的防病毒软件。

我想尽力解决这个问题。你对其他事情有所了解吗?

谢谢。

c# uwp nuget bots direct-line-botframework
1个回答
1
投票

您只需要安装此nuget包Microsoft.Rest.ClientRuntime的2.0.0.0或更高版本

© www.soinside.com 2019 - 2024. All rights reserved.