Note that there are some explanatory texts on larger screens.

plurals
  1. POMinimal runtime for Mono for a Vb.net VS2005 app on Windows?
    primarykey
    data
    text
    <p>Does anyone know, or have a link to an article or a step by step tutorial, that would tell me how to distribute a .net MONO application with a minimum install? The full package of Mono is like 75 MB but I know al lot of that is the compiler and libraries that I don't need.</p> <p>I just want the minimum runtime files.</p> <p>What files would I need to distribute for a simple 'Hello World' winforms app?</p> <p>I tried just deleting files until I came up with something that worked but it only worked on the machine that had Mono installed on it. Here are the files I tried</p> <p>I created a directory for my app. In that directory I created two more directories</p> <p>\bin \lib\mono\2.0</p> <p>in the \mono\lib\mono\2.0 I put the mscorlib.dll file in the \bin directory I put the following</p> <p>Accessibility.dll,MyApp.exe (this is the basic Hello World I did in VS2005),iconv.dll, intl.dll, libglib-2.0-0.dll, libgthread-2.0-0.dll, Microsoft.VisualBasic.dll, mono.dll, mono.exe, Mono.Posix.dll, System.dll, System.Drawing.dll, System.Windows.Forms.dll</p> <p>Then, from the \bin directory I ran 'mono MyApp.exe' and it worked on my Mono installed machine but no others.</p> <p>What I'd prefer is an 'xcopy' solution where there would be no actual installation necessary but just need the runtime files included (like when you run from a thumb drive)</p> <p>Please note that this is to run on a Windows computer, not a linux box.</p> <hr> <p>I tried running mkbundle2 (it is a .net 2.0 app) and got this error</p> <blockquote> <p>C:\Program Files\Mono-2.0.1\bin>mkbundle2 C:\Projects\SingleExeTest\bin\Release\SingleExeTest.exe --deps OS is: Windows Sources: 1 Auto-dependencies: True embedding: C:\Projects\SingleExeTest\bin\Release\SingleExeTest.exe embedding: C:\PROGRA~1\MONO-2~1.1\lib\mono\2.0\mscorlib.dll embedding: C:\PROGRA~1\MONO-2~1.1\lib\mono\2.0\Microsoft.VisualBasic.dll<br> embedding: C:\PROGRA~1\MONO-2~1.1\lib\mono\2.0\System.dll<br> embedding: C:\PROGRA~1\MONO-2~1.1\lib\mono\2.0\System.Configuration.dll<br> embedding: C:\PROGRA~1\MONO-2~1.1\lib\mono\2.0\System.Xml.dll<br> embedding: C:\PROGRA~1\MONO-2~1.1\lib\mono\2.0\System.Security.dll<br> embedding: C:\PROGRA~1\MONO-2~1.1\lib\mono\2.0\Mono.Security.dll<br> embedding: C:\PROGRA~1\MONO-2~1.1\lib\mono\2.0\System.Windows.Forms.dll<br> embedding: C:\PROGRA~1\MONO-2~1.1\lib\mono\2.0\System.Drawing.dll<br> embedding: C:\PROGRA~1\MONO-2~1.1\lib\mono\2.0\System.Data.dll<br> embedding: C:\PROGRA~1\MONO-2~1.1\lib\mono\2.0\Mono.Data.Tds.dll<br> embedding: C:\PROGRA~1\MONO-2~1.1\lib\mono\2.0\System.Transactions.dll embedding: C:\PROGRA~1\MONO-2~1.1\lib\mono\2.0\System.EnterpriseServices.dll<br> embedding: C:\PROGRA~1\MONO-2~1.1\lib\mono\2.0\Mono.WebBrowser.dll<br> embedding: C:\PROGRA~1\MONO-2~1.1\lib\mono\2.0\Mono.Posix.dll<br> embedding: C:\PROGRA~1\MONO-2~1.1\lib\mono\2.0\Accessibility.dll Compiling: as -o temp.o temp.s</p> <p>Unhandled Exception: System.ComponentModel.Win32Exception: ApplicationName='sh', CommandLine='-c "as -o temp.o temp.s "', CurrentDirectory='' at System.Diagnostics.Process.Start_noshell (System.Diagnostics.ProcessStartIn fo startInfo, System.Diagnostics.Process process) [0x00000] at System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInf o startInfo, System.Diagnostics.Process process) [0x00000] at System.Diagnostics.Process.Start (System.Diagnostics.ProcessStartInfo start Info) [0x00000] at MakeBundle.Execute (System.String cmdLine) [0x00000] at MakeBundle.GenerateBundles (System.Collections.ArrayList files) [0x00000] at MakeBundle.Main (System.String[] args) [0x00000]</p> <p>C:\Program Files\Mono-2.0.1\bin></p> </blockquote> <p>Any suggestions?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload