简体   繁体   English

MonoDevelop中发布的应用程序崩溃

[英]Published applications in MonoDevelop crash

I made a very simple gtk# 2.0 application in MonoDevelop. 我在MonoDevelop中制作了一个非常简单的gtk#2.0应用程序。 When I try running the .exe file in my project's bin folder, or running the application when I create a package, it crashes immediately. 当我尝试在项目的bin文件夹中运行.exe文件或在创建程序包时运行应用程序时,它立即崩溃。 The program runs fine if I run it from MonoDevelop, but outside of the IDE it doesn't work. 如果我从MonoDevelop运行该程序,则该程序运行良好,但在IDE外部无法正常运行。 I don't want an installer per say, just the .exe that someone can run. 我不想每个人都说安装程序,只是一个可以运行的.exe文件。

Try switching the runtime from default to .net (Where it says Debug / Runtime). 尝试将运行时从默认切换为.net(在此处显示“调试/运行时”)。 It 'll also crash immediately. 它也会立即崩溃。 The problem I guess lies in a missing gtk# .net install? 我猜问题出在缺少gtk#.net安装?

http://www.go-mono.com/mono-downloads/download.html http://www.go-mono.com/mono-downloads/download.html

Other way around. 反过来。 If you have the mono compiler installed (and you have it) you can enter a special command line though mono. 如果您安装了单声道编译器(并且已经安装了),则可以通过单声道输入特殊的命令行。 Type mono in your application search and use the found Mono xxx command prompt program. 在应用程序搜索中键入mono,然后使用找到的Mono xxx命令提示符程序。 In there goto your .exe file (cd /d "C:\\YourPath\\bin\\Debug\\") and execute it with mono runtime: mono Your.exe. 在其中转到您的.exe文件(cd / d“ C:\\ YourPath \\ bin \\ Debug \\”),并使用mono运行时执行该文件:mono Your.exe。 This would work again, cause it is not .net. 这将再次起作用,因为它不是.net。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM