Sunday, January 19, 2014

mono: Running C#, ASP.NET under Ubuntu

Mono is not monotone at all, it makes Microsoft-centered technologies available on various platforms including Ubuntu. Mine is 12.04.

sudo apt-get install mono-devel mono-gmcs gtk-sharp2 

Compile and execute

Fetch the example files at Console helloword program

gmcs hello.cs
mono hello.exe

Compile and execute gtk program

Source Here

dmcs hello-gtk.cs -pkg:gtk-sharp-2.0
mono hello-gtk.exe

Install ASP server xsp2 and start server

sudo apt-get install mono-xsp2 asp.net-examples
xsp2

When server is on, it gives

Listening on address: 0.0.0.0
Root directory: /home/user
Listening on port: 8080 (non-secure)
Hit Return to stop the server.

Now you can visit your .aspx files under http://localhost:8080/yourfile.aspx

No comments:

Post a Comment