简体   繁体   English

monodevelop-工作调试但不工作发布

[英]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. 它不在那里。

Why? 为什么?

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 系统管理

How? 怎么样?

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.

相关问题 与MySQL的连接在Debug模式下工作,而在Release中不工作 - Connection to MySQL is working in Debug mode and not working in Release MonoDevelop无法在Leopard 10.5.5上运行 - MonoDevelop not working on Leopard 10.5.5 任务栏图标在调试模式下工作,而不在发布模式下工作 - Tray Icon is working in Debug Mode, Not in Release Mode Visual Studio 2015调试和发布无法正常工作 - Visual Studio 2015 Debug and Release not working #if DEBUG无法在Windows Service版本中运行 - #if DEBUG not working on a Windows Service release build 为什么 ChromeDriver 可以在 Debug 模式下工作,但不能在发布时工作? - Why is ChromeDriver working in Debug mode but not on release? Web服务在调试模式下工作,但不在发布模式下工作 - Webservice is working in debug mode but not in release mode .Net Release构建比Debug慢 - .Net Release build working slower than Debug GPG加密在控制台调试模式下工作,但在发布模式下不工作(窗口服务) - GPG encryption is working in console debug mode but not in release mode( window service) MVC捆绑软件不适用于发行版配置(Debug为False),CSS和JS无法加载 - MVC Bundle not working with Release Configuration (Debug is False), CSS and JS not loading
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM