2

Compiling C# code in Mac gives me a binary that runs on mono. I need to run 'mono abc.exe' to run the binary.

  • Can I make a binary that doesn't need mono to run with mono/C#?

If so, how good is the result? If not, is there a way to run the binary not with 'mono abc.exe' but with 'abc.exe'?

ADDED

I needed some more effort in order to run mkbundle with mono 2.10.2 on Snow Leopard - An issue when running mono 2.10.2 mkbundle on Mac OS X snow leopard

Community
  • 1
  • 1
prosseek
  • 182,215
  • 215
  • 566
  • 871

1 Answers1

2

There are two options: mkbundle and a shell wrapper. Use first if you're not expecting to find mono on all the boxes you're going to run your executable file, and the second option otherwise.

SK-logic
  • 9,605
  • 1
  • 23
  • 35