LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 03-21-2005, 10:11 PM   #1
Kdr Kane
Member
 
Registered: Jan 2005
Distribution: SUSE, LFS
Posts: 357

Rep: Reputation: 30
Mono/.Net Program Compatibility


I attended a an introduction to Mono presentation a couple of months ago. I was left with the impression that applications developed on Mono should run fine on Windows XP since XP has the .Net framework installed.

Now I'm totally stumped and feel I must have misunderstood.

Let me give you an example.

Here is a nice article Seven Cool Mono Apps that introduced me to an interesting application called Tomboy.

It's interesting because I wanted to run it on my Windows XP computer at work in addition to running it at home on Linux. However, the Tomboy site doesn't discuss the possibility of running the application on .Net. Am I completely wrong to assume it could? How would I go about installing and running Tomboy on a Windows computer (assuming it has the .Net framework installed)?

If it won't run on Windows, then I'm going to get depressed. Because it was my understanding that you could do cross-platform development.
 
Old 03-22-2005, 01:42 PM   #2
os2
Member
 
Registered: Dec 2003
Location: Canada
Distribution: Suse 10
Posts: 206

Rep: Reputation: 30
mono support only a few part of the .net framework

you can't know run big application (.net) with mono

mono will never 100% compatible with ms .net

by cross-platform, that mean you need to use mono under linux, under windows...

i don't read all .net licence... but on the web, you can read that ms can pursuit mono...
 
Old 03-22-2005, 02:11 PM   #3
deiussum
Member
 
Registered: Aug 2003
Location: Santa Clara, CA
Distribution: Slackware
Posts: 895

Rep: Reputation: 31
I haven't used Mono, but I have used DotGNU a bit. With that, you can compile a C# app in Windows, and run it in Linux with the DotGNU runtime, and vice versa.

But, not everything supported by VS.Net is implemented in DotGNU. There are quite a few things that are implemented, such as Windows forms, etc. but every once in awhile you will run into something that isn't.

The same is probably true the other way. If Mono uses assemblies that don't come with the MS .Net implementation, it would run into problems that way too.
 
Old 03-22-2005, 02:15 PM   #4
Kdr Kane
Member
 
Registered: Jan 2005
Distribution: SUSE, LFS
Posts: 357

Original Poster
Rep: Reputation: 30
I hope somebody understands my question some day.

I'll be patient.

Last edited by Kdr Kane; 03-22-2005 at 06:26 PM.
 
Old 03-22-2005, 08:01 PM   #5
deiussum
Member
 
Registered: Aug 2003
Location: Santa Clara, CA
Distribution: Slackware
Posts: 895

Rep: Reputation: 31
Maybe you can enlighten us on what we didn't understand?
 
Old 03-23-2005, 03:03 PM   #6
clausi
Member
 
Registered: Mar 2004
Distribution: Debian
Posts: 48

Rep: Reputation: 15
Re: Mono/.Net Program Compatibility

Quote:
Originally posted by Kdr Kane
Now I'm totally stumped and feel I must have misunderstood.
I believe, you can run Mono applications under Windows XP when you install the Mono framework for Windows.

As far as I understood, it works this way:

Code:
Mono app -> runs on -> Mono framework -> runs on -> Windows
or

Code:
Mono app -> runs on -> Mono framework -> runs on -> Linux
in contrast to:

Code:
.NET app -> runs on -> .NET framework -> runs on Windows only.
You probably thought:

Code:
Mono app -> runs on -> .NET framework -> runs on Windows.
This may work when the app is small, but in most cases an advanced application will use libraries that don't run on the .NET framework. For example, I'm not sure if you can use the GTK# libraries within .NET but these are needed by Tomboy. There is probably a way to set this up, but it's easier to install Mono besides .NET.

I'm no expert in Mono, though.

Last edited by clausi; 03-23-2005 at 03:10 PM.
 
Old 03-23-2005, 03:22 PM   #7
Kdr Kane
Member
 
Registered: Jan 2005
Distribution: SUSE, LFS
Posts: 357

Original Poster
Rep: Reputation: 30
Thank you. You are correct.

I thought:
Code:
Mono app -> runs on -> .NET framework -> runs on Windows.
And I guess I'll look into it further.

I know that Mono developers are courting .Net developers to do their .Net development on Mono. It really doesn't make sense if their applications won't run on .Net if it's developed on Mono.

I'll also look at Tomboy a bit closer. If it does require GTK+, then you are absolutely correct. It won't run on .Net. Now why would somebody do that?

Thanks for addressing what I wrote.
 
Old 03-23-2005, 03:51 PM   #8
deiussum
Member
 
Registered: Aug 2003
Location: Santa Clara, CA
Distribution: Slackware
Posts: 895

Rep: Reputation: 31
Maybe I wasn't as clear, but I thought I addressed the possibility that Tomboy was using libraries not supported by the .NET framework with the following statement:

Quote:
The same is probably true the other way. If Mono uses assemblies that don't come with the MS .Net implementation, it would run into problems that way too.
Anyway, DotGNU apps can run on the .NET Framework in Windows, and .NET apps run on the DotGNU framework in Linux, so long as you are using libraries common to both.

Basically, the .NET framework defines a binary standard much like the Java byte-code, and DotGNU compiles to that standard. I assumed Mono would also compile to that same standard, but I could be wrong.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SuSE 9.2 ASP.NET with Mono Icarus315 Linux - Software 1 01-31-2005 07:37 AM
does Mono.NET work on KDE? Cavenaghi Linux - Software 6 10-28-2004 04:40 AM
.Net Compatibility??? dr00t Linux - Software 1 08-15-2004 08:56 AM
Using Mono for the .NET Framework chalewa4bambu Linux - Software 0 07-04-2004 02:32 PM
MONO .Net Middleware GtkUser Programming 2 12-19-2003 07:05 AM


All times are GMT -5. The time now is 06:11 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration