[Mono-list] Microsoft .Net

Andrew Arnott AndrewArnott@byu.edu
Fri, 14 May 2004 10:51:34 -0600


This is a multi-part message in MIME format.

------_=_NextPart_001_01C439D3.B724B4C9
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

The whole idea behind .NET and Mono (the CLI standard) is that you can
compile with one and run on the other.  In theory, you shouldn't need to
compile with the Mono C# compiler in order for your programs to run on
Mono.  I have successfully written C# programs in Visual Studio .NET
2003, copied the assemblies (.exe's) to Linux and run under Mono with
perfect results.  In other words, you shouldn't need a "Mono" target in
Visual Studio.

=20

That being said, your SQLDMO.dll is a Win32 DLL - not managed code.
Therefore it probably will not work in the Linux environment.  There may
be an open source Linux replacement, but not that I know of.

=20

For all the open source coders, I have found SQLDMO to be buggy and
poorly documented.  I believe that all it does can be reproduced with
(more or less) standard T-SQL.  This would be a good thing to
re-implement using managed code.

=20

>From your non-authoritative source,

=20

Andrew

=20

________________________________

From: mono-list-admin@lists.ximian.com
[mailto:mono-list-admin@lists.ximian.com] On Behalf Of Rik Dodsworth
Sent: Friday, May 14, 2004 8:09 AM
To: mono-list@ximian.com
Subject: [Mono-list] Microsoft .Net

=20

We currently have a system written in Microsoft c#.Net, what we are
aiming to do is distribute our product on linux.

Will it be possible to compile our product in MS C#.Net and copy the
files on to linux and it work ?

Or will we have to make the code compile within mono first.

What would be nice is in the Debug/Release options in VS.Net we had
another for Linux - Mono which used the mono compiler to compile our
code or someother way to check within VS.Net that it will be compatible.

=20

If all this is possible we use SQLDMO.Dll for getting information about
sql servers on the network will this be possible to use from within
linux.

=20

Thanks in advance

=20

Rik


------_=_NextPart_001_01C439D3.B724B4C9
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
p.Code, li.Code, div.Code
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:"Courier New";}
span.EmailStyle18
	{mso-style-type:personal;
	font-family:Arial;
	color:windowtext;}
span.EmailStyle19
	{mso-style-type:personal-reply;
	font-family:Arial;
	color:navy;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>The whole idea behind .NET and Mono =
(the
CLI standard) is that you can compile with one and run on the other. =
&nbsp;In theory,
you shouldn&#8217;t need to compile with the Mono C# compiler in order =
for your
programs to run on Mono.&nbsp; I have successfully written C# programs =
in Visual
Studio .NET 2003, copied the assemblies (.exe&#8217;s) to Linux and run =
under
Mono with perfect results. &nbsp;In other words, you shouldn&#8217;t =
need a &#8220;Mono&#8221;
target in Visual Studio.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>That being said, your SQLDMO.dll is =
a
Win32 DLL &#8211; <i><span style=3D'font-style:italic'>not</span></i> =
managed
code. &nbsp;Therefore it probably will not work in the Linux =
environment. &nbsp;There may
be an open source Linux replacement, but not that I know =
of.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>For all the open source coders, I =
have
found SQLDMO to be buggy and poorly documented. &nbsp;I believe that all =
it does can
be reproduced with (more or less) standard T-SQL.&nbsp; This would be a =
good thing
to re-implement using managed code.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>From your non-authoritative =
source,<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Andrew<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font =
size=3D3
face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>

<hr size=3D2 width=3D"100%" align=3Dcenter tabindex=3D-1>

</span></font></div>

<p class=3DMsoNormal><b><font size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font =
size=3D2
face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'> =
mono-list-admin@lists.ximian.com
[mailto:mono-list-admin@lists.ximian.com] <b><span =
style=3D'font-weight:bold'>On
Behalf Of </span></b>Rik Dodsworth<br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Friday, May 14, =
2004 8:09 AM<br>
<b><span style=3D'font-weight:bold'>To:</span></b> =
mono-list@ximian.com<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> [Mono-list] =
Microsoft
.Net</span></font><o:p></o:p></p>

</div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>We currently have a system written in Microsoft =
c#.Net, what
we are aiming to do is distribute our product on =
linux.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Will it be possible to compile our product in MS =
C#.Net and
copy the files on to linux and it work ?<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Or will we have to make the code compile within mono =
first.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>What would be nice is in the Debug/Release options in =
VS.Net
we had another for Linux &#8211; Mono which used the mono compiler to =
compile
our code or someother way to check within VS.Net that it will be =
compatible.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>If all this is possible we use SQLDMO.Dll for getting
information about sql servers on the network will this be possible to =
use from
within linux.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Thanks in advance<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Rik<o:p></o:p></span></font></p>

</div>

</body>

</html>

------_=_NextPart_001_01C439D3.B724B4C9--