[Mono-list] MonoDevelop and C# help

Michael Hutchinson m.j.hutchinson at gmail.com
Sun Mar 15 20:00:30 EDT 2009


On Sun, Mar 15, 2009 at 1:21 AM, ShadyTyrant <shadytyrant at gmail.com> wrote:
>
> I run vista on my laptop and Ubuntu Linux on my desktop. On my desktop I have
> mono and MonoDevelop installed in order to use the dotNet framework and code
> in C# on the linux OS. Now when I save my project (lets say a hello world
> program) with mono develop and I go to the directory it was saved I find the
> bin file and open it up. Then I try to run the exe that is there and ubuntu
> gives me the error 'no application Associated with file type.' It has
> permission to be ran as an app and everything. I know that linux does not
> run windows apps but how do I write and compile C# for the linux platform?

You should use a launch script, to pass the executable to the Mono runtime:
http://www.mono-project.com/Guidelines:Application_Deployment#Layout_Recommendation

MonoDevelop can create this for you:
http://monodevelop.com/Building_packages_with_MonoDevelop

Note that although Linux can be configured with binfmt_misc to pass
exe files to Mono automatically, this isn't very portable, which is
why launch scripts are recommended.

-- 
Michael Hutchinson
http://mjhutchinson.com


More information about the Mono-list mailing list