找不到类型或命名空间名称 'AdaptiveCards'

The type or namespace name 'AdaptiveCards' could not be found

我已经尝试了 using Microsoft.AdaptiveCards;using AdaptiveCards;,但是当我为我的 Azure Web App Bot 执行构建时,我收到以下错误:

Dialogs\BasicLuisDialog.cs(17,7): error CS0246: The type or namespace name 'AdaptiveCards' could not be found (are you missing a using directive or an assembly reference?)

有什么想法吗?

戴尔, 您需要在项目的 csproj 文件中添加对 AdaptiveCard 程序集文件的引用。

找到文件 'Microsoft.Bot.Sample.LuisBot.csproj' 并打开它进行编辑。 找到名为 'ItemGroup' 的部分并添加以下代码:

<Reference Include="AdaptiveCards, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
  <HintPath>packages\AdaptiveCards.1.0.3\lib\net452\AdaptiveCards.dll</HintPath>
</Reference>

您告诉您的代码文件您需要什么程序集,但没有告诉项目在哪里找到它。