mkbundle

Mono mkbundle tool unable to create binary with complaint that output file is unavailable

可紊 提交于 2020-01-15 06:20:13
问题 As per suggestions from this thread on running C# apps sans .NET I've compiled my app using mono. I built the original app using the latest Visual C# .NET Express Edition. It runs fine on .NET on Windows. I then opened up Cygwin and navigated to my source where I compiled the project again, under mono using the following command: $ mcs <myProjectHere>.cs This produces MyProject.exe, which can be run from within Cygwin with success, and can be run from the Window command line successfully.

Mkbundle failed to compile C# application on OS X

坚强是说给别人听的谎言 提交于 2020-01-01 19:18:50
问题 I've been at this for a few days now and whilst I fairly quickly managed to get Mono's mkbundle to create a native executable on Windows and Linux I haven't been able to do the same for OS X. I'm using Mono 3.4.0 as I need .NET 4.5 support and being able to compile for x86_64 on OS X would be nice too. I currently use the following simple bash script to attempt the mkbundle build: #!/bin/bash export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/lib/pkgconfig:/Library/Frameworks/Mono.framework

Create C# executable with mkbundle on windows

放肆的年华 提交于 2019-12-30 03:27:05
问题 Im trying to create an executable from a console application. I have installed mono,cygwin (mingw-gcc, mingw-zlib1, mingw-zlib-devel, pkg-config) and I have added the following lines to my .bashrc file export PKG_CONFIG_PATH=/cygdrive/c/progra~1/Mono-3.2.3/lib/pkgconfig export PATH=$PATH:/cygdrive/c/progra~1/Mono-3.2.3/bin export CC="i686-pc-mingw32-gcc -U _WIN32" But everytime I try to use mkbundle I receive the following message Is there a way to make mkbundle work properly on windows.? (Im

How to convert a simple .Net console project a into portable exe with Mono and mkbundle?

蓝咒 提交于 2019-12-28 00:52:11
问题 I'd like to convert my simple pure .Net 2.0 console utility into a portable exe which I could just put on an USB stick and run without having to worry whether the CLR and framework libraries are installed on a particular machine or not. Stackoverflow already has some information on using Mono and Mkbundle for creating self-contained Windows exes from .Net-projects, but what I would like to have is a compact but useful HOWTO. What are the minimum steps for achieving a portability from a simple

Problems while creating a Linux-executable file from C# sourcecode using mkbundle

…衆ロ難τιáo~ 提交于 2019-12-23 12:24:25
问题 As mentioned in this thread as well as here I am using mkbundle -o newfile oldfile.exe --static (OS: Ubuntu 11.10 64bit, Mono: 2.10.5) to create a file which shall be executable on an Apache Web Server (OS: Debian GNU/Linux 32bit). Here, the oldfile.exe was the result of the compilation of a C#-Hello-World-Code using mcs oldfile.cs . On the original system (with Ubuntu) the file is executable. However, whenver I call newfile on the Apache Web Server I get the error: cannot execute binary file

Mkbundle Mono Assembly binding redirection

时光怂恿深爱的人放手 提交于 2019-12-22 08:00:33
问题 I have a sample .NET application that runs fine on windows, and my Ubuntu environment using mono. I am trying to use Mkbundle to create a single native assembly so I can docker containerize it using busybox and keep the size small instead of the usually huge bloated containers. The problem I am running into is with Json.net, I think its due to assembly binding redirection from the app.config file, anyone else ran into this? <?xml version="1.0" encoding="utf-8"?> <configuration> <startup>

Mono 3.4.0 mkbundle under Mac OS X failed

折月煮酒 提交于 2019-12-20 03:13:23
问题 I`m trying to make static binary under MAC OS X 10.9 (Mavericks) which is not require mono runtime. This is almost clean machine with the latest updates and the latest XCode. If I do not set the build architecture, I have the following: mkbundle client-patcher.exe -o client-patcher OS is: Darwin Sources: 1 Auto-dependencies: False embedding: /Users/radubalan/tmp/client-patcher.exe Compiling: as -o temp.o temp.s cc -g -o client-patcher -Wall temp.c `pkg-config --cflags --libs mono-2` temp.o ld

mkbundle and GTK#

独自空忆成欢 提交于 2019-12-19 04:57:28
问题 I'm trying to use mkbundle so that I can distribute a GTK# application without users needing to install .NET/Mono or GTK#. I've successfully bundled an application which uses winforms, but for some reason when I do the same with a GTK# application it won't work. This is what I get out of cygwin: $ mkbundle --deps a.exe OS is: Windows Sources: 1 Auto-dependencies: True Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'gtk-sharp' or one of its dependencies.

Can not compile simple C# application with mkbundle

核能气质少年 提交于 2019-12-17 22:38:24
问题 I have written some console "Hello world"-like app. and have followed c# cywgwin mono mkbundle windows 7 - cannot compile file answer. But I have got: $ mkbundle -o Fur Furries.exe --deps -z OS is: Windows Sources: 1 Auto-dependencies: True embedding: C:\Monotest\Furries.exe compression ratio: 40.43% embedding: C:\Soft\Mono\lib\mono\4.0\mscorlib.dll compression ratio: 34.68% Compiling: as -o temp.o temp.s gcc -mno-cygwin -g -o Fur -Wall temp.c `pkg-config --cflags --libs mono-2|dos2un ix` -lz

mkbundle on Mac with Mono: “mono/metadata/mono-config.h” file not found

一笑奈何 提交于 2019-12-06 17:04:17
问题 I'm trying to create a Mac bundle with Mono. When I execute: mkbundle file.exe --deps -o FILE I get this during compilation: fatal error: "mono/metadata/mono-config.h" file not found Am I missing something? 回答1: The key is the preceding error ( sh: pkg-config: command not found ), note that pkg-config is stored at '/Library/Frameworks/Mono.framework/Commands'. Solution (see here and here): Prepend the "/Library/Frameworks/Mono.framework/Commands" folder to your PATH variable: export PATH=