在 Azure 在线代码编辑器中添加包

Adding packages in the Azure online code editor

我想在我的 Luis Web App Bot 中使用 restsharp package。但是当我添加

using RestSharp;

的声明

BasicLuisDialog.cs

并在控制台中通过 build.cmd 构建程序集,我得到

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

如何在 Azure 在线代码编辑器中添加程序集引用?

您可以添加此行:<package id="RestSharp" version="106.3.1" targetFramework="net46" /> 到您的 packages.config 文件,然后 运行 再次从控制台构建。