在进行MySQL与unity的连接时:
查询指令
string selstr = "select* from hiscores";
MySqlCommand myselect = new MySqlCommand(selstr, mycon);
DataSet ds = new DataSet();
try
{
MySqlDataAdapter da = new MySqlDataAdapter(selstr, mycon);
da.Fill(ds);
Debug.Log("Query success!");
print(ds.Tables[0].Rows[0][0]);
}
catch (Exception ee)
{
throw new Exception("SQL: " +selstr + "\n" +ee.Message.ToString());
}
报错为:
【错误 CS0433 类型“DataSet”同时存在于“System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”和“netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51”中 Assembly-CSharp E:\Unity Project Workspace\Example\Unity_MySQL\Assets\Scripts\CMySQL.cs 26 活动】
想请教各位我该如何解决?
谢谢!