Mono

From the Linux and Unix Users Group at Virginia Teck Wiki
Revision as of 20:04, 7 December 2009 by imported>Cov (WSDL)
Jump to: navigation, search

Mono is a cross-platform Free Software .NET compiler and runtime.

Programming in C# is required for ECE 4564 Network Application Design. Thanks to Mono, all assignments for that class can be completed from Linux, if GTK# is substituted for Windows Forms.

Development Environment

The recommended development environment is MonoDevelop, which as of version 2.0 comes bundled with a GUI designer. Note that the debugger and API documentation are packaged separately. To install everything on Ubuntu Karmic, run:

$ sudo apt-get install mono-complete monodevelop monodevelop-debugger-mdb monodoc-browser

WSDL

To use a WSDL file, perform the following steps, substituting WeatherForecast and the full URL with your service, as appropriate:

$ wget -O WeatherForecast.wsdl http://www.webservicex.net/WeatherForecast.asmx?WSDL
$ wsdl WeatherForecast.wsdl
$ gmcs /target:library -r:/usr/lib/mono/2.0/System.Web.Services.dll WeatherForecast.cs

Then, add .dll, in this case WeatherForecast.dll, as a reference in your IDE.

External Links