[英]monodevelop - working debug but not working release
I have developed a project with VS on Windows 10. Right now on Linux mint i am debugging the project with MonoDevelop and it runs just fine. 我已经在Windows 10上使用VS开发了一个项目。现在在Linux Mint上,我正在使用MonoDevelop调试该项目,它运行得很好。
Let me show you: 让我演示给你看:
However when i make a build and i go to the Release folder and then i try from the terminal to launch the program i have a problem. 但是,当我进行构建并转到Release文件夹,然后从终端尝试启动程序时,我遇到了问题。 Let me show you first the files i have build:
首先让我向您展示我已构建的文件:
Then i go to the directory with my terminal and i run: 然后我用终端转到目录,然后运行:
chmod +x ./WorldServer.exe
then i run ./WorldServer.exe
chmod +x ./WorldServer.exe
然后我运行./WorldServer.exe
and i receive the following error: 我收到以下错误:
I know that this is .exe file and maybe i have to build a different type of file. 我知道这是.exe文件,也许我必须构建其他类型的文件。 But i am not really sure what setting should i apply in my project to make a working build for linux.
但是我不太确定我应该在我的项目中应用什么设置才能使linux正常工作。
As far as i know linux is using .so as extension for it's libraries. 据我所知,linux使用.so作为其库的扩展名。 However it is generating .dll files.
但是,它正在生成.dll文件。 Can i change that?
我可以改变吗? Can i somehow make my project to be "buildable" in the two OS Linux and Windows ?
我可以以某种方式使我的项目在Linux和Windows这两个OS上“可构建”吗?
The exception tells us, you need System.Management
in your project. 异常告诉我们,您的项目中需要
System.Management
。 It isn't there. 它不在那里。
Because Mono, according to there Road-map , doesn't support this: 因为Mono, 根据Road-map ,不支持此功能:
The following do not map to operating systems other than Windows, and we are unlikely to spend time to support them even on Windows:
以下内容未映射到Windows以外的操作系统,即使在Windows上,我们也不太可能花费时间来支持它们:
- System.Management
系统管理
System.Management is a library that only works on Windows. System.Management是仅适用于Windows的库。 The MySQL connector driver has started to depend on this library and tries to load it per reflection.
MySQL连接器驱动程序已开始依赖此库,并尝试通过反射加载它。
I'm not into this whole MySql Progess but there is an open bug for it. 我不了解整个MySql Progess,但是有一个开放的bug 。 Also there is a comment which says:
也有一条评论说:
The last working version of the MySQL .NET Driver is 6.4.6
MySQL .NET驱动程序的最后一个工作版本是6.4.6。
I hope this helps you. 我希望这可以帮助你。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.