【发布时间】:2019-12-23 12:31:21
【问题描述】:
我正在尝试编写 Azure 函数并使用 MySQL,但我似乎无法使用 MySQL.Data 或 MySql.Data.MySqlClient 指令。我得到的错误如下:
The type or namespace name 'MySql' could not be found.
我不确定我需要什么来完成这项工作
using MySql.Data;
using MySql.Data.MySqlClient;
【问题讨论】:
-
我假设您尝试从 Azure 门户中创建函数?以这种方式正确获取外部包引用很棘手。我建议使用 Visual Studio Code 创建您的函数。