[英]How do i run a mysql app without mysql connector installed?
I made an C# application on visual studio, and this application connects to a MySQL Server, it works nice on my computer since I installed the full developer version of it. 我在Visual Studio上制作了一个C#应用程序,该应用程序连接到MySQL服务器,由于我安装了完整的开发人员版本,因此在我的计算机上运行良好。
But it doesn't run on other machines unless I install MySql connector, if I don't, it will stop working and not launch. 但是除非安装MySql连接器,否则它不能在其他计算机上运行,否则,它将停止工作并且无法启动。
Is there anyway to run it without having mysql connector installed? 无论如何,没有安装mysql连接器就可以运行它? Or add mysql connector installation to my app?
还是将mysql连接器安装添加到我的应用程序?
You need to bundle the MySql Connector/Net with your program. 您需要将MySql Connector / Net与程序捆绑在一起。 Connector/Net is available as an msi file that a Visual Studio Installer project in the same solution as your program's project can include alongside your program's installer as a dependency.
Connector / Net作为msi文件提供,与程序项目相同的解决方案中的Visual Studio Installer项目可以作为依赖项包含在程序的安装程序中。
The Connector is licensed under the GPL, so make sure you understand your obligations if you choose to distribute it in this manner. 连接器是根据GPL许可的,因此,如果选择以这种方式分发它,请确保您了解自己的义务。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.