Using Mono on Windows

I know this sounds silly, but:

I found this application written in Mono and it is open source.

While looking at the source code, I found this two using directives that stopped me:

using Gdk; using Mono.Unix; 

I assume these are mono-specific libraries.

So, can you run Mono on Windows? (maybe Visual Studio express edition?)

I am trying to learn C #

I see that there is a Windows application branch, but it is empty.

BTW: Mono thought about the cross platform in the first place?

EDIT

I downloaded / installed and ran the sample code

 using Mono.Unix; class X { static void Main () { System.Console.Write("OK");} } 

And the answer to my question is:

 x.cs(1,12): error CS0234: The type or namespace name `Unix' does not exist in the namespace `Mono'. Are you missing an assembly reference? Compilation failed: 1 error(s), 0 warnings 

No, this does not work :(

+6
c # windows mono
source share
4 answers

Mono Windows Guide

I'm not sure that you can use the code using the Mono.Unix namespace, but as a rule, if you are creating cross-platform code, you do not need to.

Gnome Do linux port . However, for a training project, I could suggest starting with code that is actually a cross-platform, or developing on Linux at the moment. Solving cross platform issues and possibly an incomplete port will simply complicate the learning process.

So, I assume, in general, your initial question. Yes, you can run Mono on Windows, but you can write specific platform code, which is really the selected sample application. The link above is a port for running this code on Windows. Without porting (changing the code of a specific platform), this program will not compile in windows.

+3
source share

Yes, you can install mono under the windows. There is an experimental installer.

See: http://mono-project.com/Mono:Windows

This page also contains information about gtk files.

+3
source share

Of course, you can run mono under windows:

http://www.go-mono.com/mono-downloads/download.html

+2
source share

Gdk is a cross-platform library for a low-level window system, and the code uses .NET binding to Gdk. It is available for windows (as part of the Gtk # package or in the Mono installer).

Mono.Unix is ​​a mono library that provides access to unix services (syscalls, stdlib). I don't think Mono.Unix is ​​available for windows, but Mono.Posix may be available.

0
source share

All Articles