0

im looking for a way to implement a addin that can convert a C# solution into a mono compiled exe, so i can use it on a linux and mac environment that have the mono framework installed.

caesay
  • 16,932
  • 15
  • 95
  • 160
  • possible duplicate of [Is it possible to build MSBuild files (visual studio sln) from the command line in Mono?](http://stackoverflow.com/questions/54790/is-it-possible-to-build-msbuild-files-visual-studio-sln-from-the-command-line-i) – Robert MacLean Aug 02 '11 at 13:22

2 Answers2

3

If you're working with Visual Studio and Mono, you should compile against a Mono Profile, this helps minimizing potential errors.

If you're really looking for way to integrate XBuild into Visual Studio, you could

  • Add XBuild as Tool in Visual Studio (Tools / External Tools) or
  • If you are using VS2012 - you can use and try out MonoHelper, a little tool I created for learning purpose
Community
  • 1
  • 1
Dresel
  • 2,375
  • 1
  • 28
  • 44
1

There is no difference in a .Net exe and a Mono exe. Just compile your solution like you normally would in Visual Studio, then run you exe with Mono instead of .Net.

jpobst
  • 9,982
  • 1
  • 29
  • 33
  • what im looking to do, is compile with xbuild and return the output of errors (if any), and if no errors, then build and run through cmd. – caesay Jun 06 '10 at 22:31
  • because if i just compile with msbuild then any mono related errors wont be displayed – caesay Jun 09 '10 at 00:31