mail-archives/mono-osx/2009-February/002126.html

103 строки
4.3 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-osx] A very basic question-- running Win .net exe on Mac OS X w/ Mono
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mono-osx%40lists.ximian.com?Subject=%5BMono-osx%5D%20A%20very%20basic%20question--%20running%20Win%20.net%20exe%20on%20Mac%0A%20OS%20X%20w/%20Mono&In-Reply-To=22219689.post%40talk.nabble.com">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="002104.html">
<LINK REL="Next" HREF="002094.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-osx] A very basic question-- running Win .net exe on Mac OS X w/ Mono</H1>
<B>veryconfused</B>
<A HREF="mailto:mono-osx%40lists.ximian.com?Subject=%5BMono-osx%5D%20A%20very%20basic%20question--%20running%20Win%20.net%20exe%20on%20Mac%0A%20OS%20X%20w/%20Mono&In-Reply-To=22219689.post%40talk.nabble.com"
TITLE="[Mono-osx] A very basic question-- running Win .net exe on Mac OS X w/ Mono">what at mailinator.com
</A><BR>
<I>Thu Feb 26 06:54:09 EST 2009</I>
<P><UL>
<LI>Previous message: <A HREF="002104.html">[Mono-osx] A very basic question-- running Win .net exe on Mac OS X w/ Mono
</A></li>
<LI>Next message: <A HREF="002094.html">[Mono-osx] [PREVIEW] Continuum 0.2 - a native OS-X IDE for Mono
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#2126">[ date ]</a>
<a href="thread.html#2126">[ thread ]</a>
<a href="subject.html#2126">[ subject ]</a>
<a href="author.html#2126">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>
OK so that's what I was wondering-- if you could run .NET programs not
compiled with reference to mono somehow. This is what I get in Terminal:
s-computer:~ s$ mono /Users/s/Desktop/Traffic\ T.exe
Cannot open assembly '/Users/s/Desktop/Traffic T.exe': File does not contain
a valid CIL image.
Stifu wrote:
&gt;<i>
</I>&gt;<i> What? Yes, yes you can.
</I>&gt;<i> You can use Mono libraries if you want to, but you don't have to.
</I>&gt;<i>
</I>&gt;<i> My own app uses nothing but MS .NET classes, nothing Mono-specific, has
</I>&gt;<i> been compiled on Windows with the .NET compiler, and runs fine with Mono
</I>&gt;<i> on Linux, with no modification.
</I>&gt;<i>
</I>&gt;<i>
</I>&gt;<i> Joanna Carter wrote:
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> You can't take a .NET program that has already been compiled and run
</I>&gt;&gt;<i> that under Mono. You need to recompile the program, referencing the Mono
</I>&gt;&gt;<i> libraries instead.
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> Joanna
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> --
</I>&gt;&gt;<i> Joanna Carter
</I>&gt;&gt;<i> Carter Consulting
</I>&gt;&gt;<i> _______________________________________________
</I>&gt;&gt;<i> Mono-osx mailing list
</I>&gt;&gt;<i> <A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">Mono-osx at lists.ximian.com</A>
</I>&gt;&gt;<i> <A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">http://lists.ximian.com/mailman/listinfo/mono-osx</A>
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>
</I>&gt;<i>
</I>&gt;<i>
</I>
--
View this message in context: <A HREF="http://www.nabble.com/A-very-basic-question---running-Win-.net-exe-on-Mac-OS-X-w--Mono-tp22217524p22222559.html">http://www.nabble.com/A-very-basic-question---running-Win-.net-exe-on-Mac-OS-X-w--Mono-tp22217524p22222559.html</A>
Sent from the Mono - OSX mailing list archive at Nabble.com.
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="002104.html">[Mono-osx] A very basic question-- running Win .net exe on Mac OS X w/ Mono
</A></li>
<LI>Next message: <A HREF="002094.html">[Mono-osx] [PREVIEW] Continuum 0.2 - a native OS-X IDE for Mono
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#2126">[ date ]</a>
<a href="thread.html#2126">[ thread ]</a>
<a href="subject.html#2126">[ subject ]</a>
<a href="author.html#2126">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/mono-osx">More information about the Mono-osx
mailing list</a><br>
</body></html>