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

Using Microsoft.bot.Connector.DirectLine in a UWP application

我目前正在尝试通过 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 都是最新的。我也禁用了我的杀毒软件。

我 运行 不知道如何解决这个问题。您有其他尝试的想法吗?

谢谢。

您只需要安装此nuget包2.0.0.0或以上版本Microsoft.Rest.ClientRuntime