大家好!
我想包含 MySql.Data.dll 以将我的游戏与 MySql 连接起来。
我创建了一个 Plugins 文件夹并将 MySql.Data.dll 放在那里,我收到以下错误:
Assembly 'Assets/Plugins/MySql.Data.dll' will not be loaded due to errors:
Unable to resolve reference 'Google.Protobuf'. Is the assembly missing or incompatible with the current platform?
Reference validation can be disabled in the Plugin Inspector.
Unable to resolve reference 'Zstandard.Net'. Is the assembly missing or incompatible with the current platform?
Reference validation can be disabled in the Plugin Inspector.
Unable to resolve reference 'K4os.Compression.LZ4.Streams'. Is the assembly missing or incompatible with the current platform?
Reference validation can be disabled in the Plugin Inspector.
Unable to resolve reference 'BouncyCastle.Crypto'. Is the assembly missing or incompatible with the current platform?
Reference validation can be disabled in the Plugin Inspector.
Unable to resolve reference 'Ubiety.Dns.Core'. Is the assembly missing or incompatible with the current platform?
Reference validation can be disabled in the Plugin Inspector.
Unable to resolve reference 'Renci.SshNet'. Is the assembly missing or incompatible with the current platform?
Reference validation can be disabled in the Plugin Inspector.
我尝试过导入其他 dll 并且效果很好!
问题解决了!
非常感谢@Bulson。这个人推荐了一个 Unity 插件NuGetForUnity,通过它导入 MySql.Data 包,我终于成功地将 MySql 数据库与游戏连接起来