[Mono-list] ... One more question!

Gert Driesen gert.driesen@telenet.be
Fri, 11 Mar 2005 07:42:36 +0100


This is a multi-part message in MIME format.

------=_NextPart_000_0025_01C5260D.E55747E0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

Hi,
 
NAnt always tries to execute on the highest runtime version available. In
this case, Mono is mistakenly "reporting" that the 2.0 runtime is available,
while its not.
 
This issue (http://bugzilla.ximian.com/show_bug.cgi?id=62913)
<http://bugzilla.ximian.com/show_bug.cgi?id=62913) was> was fixed after the
1.1.4 release, and I'm not sure if the fix was backported to the mono-1-0
branch.
 
A quick workaround for NAnt is to remove the following entry from the
<startup> section of src/NAnt.Console/App.config:
 
        <supportedRuntime version="v2.0.40607" />

Gert
  _____  

From: mono-list-admin@lists.ximian.com
[mailto:mono-list-admin@lists.ximian.com] On Behalf Of
mono.20.khaz@spamgourmet.com
Sent: vrijdag 11 maart 2005 7:30
To: mono-list@lists.ximian.com
Subject: [Mono-list] ... One more question!



I'm having a bit of difficulty building NAnt, and I'm wondering if maybe
it's just my box.

 

Can someone tell me what the heck is causing this?

 

megatron nant-0.85-rc2 # make

mkdir -p bootstrap

cp -R lib/ bootstrap/lib

# Mono loads log4net before privatebinpath is set-up, so we need this in the
same directory

# as NAnt.exe

cp lib/log4net.dll bootstrap

cp src/NAnt.Console/App.config bootstrap/NAnt.exe.config

mono bootstrap/NAnt.exe -f:NAnt.build build

The assembly mscorlib.dll was not found or could not be loaded.

It should have been installed in the `/usr/local//lib/mono/2.0/mscorlib.dll'
directory.

make: *** [build-nant] Error 1

 

Basically, I think this means it's trying to use .NET 2.0, however this
isn't installed by default. As I said in a previous post, I was having
nothing but trouble using the -with-preview=yes - but should I be
investigating that as a solution?

 

Or is there some way to tell the mono executable to use the 1.0 runtime
instead?

 

Sorry, maybe this is a basic question: but I've had no luck finding help on
the web for this stuff.. :-( Your help is greatly appreciated!

 

-e-


------=_NextPart_000_0025_01C5260D.E55747E0
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns=3D"http://www.w3.org/TR/REC-html40" xmlns:o =3D=20
"urn:schemas-microsoft-com:office:office" xmlns:w =3D=20
"urn:schemas-microsoft-com:office:word"><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2900.2604" name=3DGENERATOR>
<STYLE>@font-face {
	font-family: Wingdings;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
	COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
	COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
	COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
	COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
	COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal-compose
}
DIV.Section1 {
	page: Section1
}
</STYLE>
</HEAD>
<BODY lang=3DEN-US vLink=3Dpurple link=3Dblue>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D421223706-11032005><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>Hi,</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D421223706-11032005><FONT =
face=3DArial=20
color=3D#0000ff size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D421223706-11032005><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>NAnt always tries to execute on the highest =
runtime version=20
available. In this case, Mono is mistakenly "reporting"&nbsp;that the =
2.0=20
runtime is available, while its not.</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D421223706-11032005><FONT =
face=3DArial=20
color=3D#0000ff size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D421223706-11032005><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>This issue (<A=20
href=3D"http://bugzilla.ximian.com/show_bug.cgi?id=3D62913) =
was">http://bugzilla.ximian.com/show_bug.cgi?id=3D62913)=20
was</A> fixed after the 1.1.4 release, and I'm not sure if the fix was=20
backported to the&nbsp;mono-1-0 branch.</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D421223706-11032005><FONT =
face=3DArial=20
color=3D#0000ff size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D421223706-11032005><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>A quick workaround for NAnt is to remove the =
following=20
entry from the &lt;startup&gt; section of=20
src/NAnt.Console/App.config:</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D421223706-11032005><FONT =
face=3DArial=20
color=3D#0000ff size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D421223706-11032005><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;supportedRuntime version=3D"v2.0.40607" =
/&gt;<BR></FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D421223706-11032005><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>Gert</DIV></FONT></SPAN>
<DIV dir=3Dltr align=3Dleft>
<HR tabIndex=3D-1>
</DIV>
<DIV dir=3Dltr align=3Dleft><FONT face=3DTahoma size=3D2><B>From:</B>=20
mono-list-admin@lists.ximian.com =
[mailto:mono-list-admin@lists.ximian.com] <B>On=20
Behalf Of </B>mono.20.khaz@spamgourmet.com<BR><B>Sent:</B> vrijdag 11 =
maart 2005=20
7:30<BR><B>To:</B> mono-list@lists.ximian.com<BR><B>Subject:</B> =
[Mono-list] ...=20
One more question!<BR></FONT><BR></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px =
solid; MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=3DSection1>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">I&#8217;m having a bit =
of difficulty=20
  building NAnt, and I&#8217;m wondering if maybe it&#8217;s just my=20
  box.<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Can someone tell me what =
the heck=20
  is causing this?<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">megatron nant-0.85-rc2 # =

  make<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">mkdir -p=20
  bootstrap<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">cp -R lib/=20
  bootstrap/lib<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"># Mono loads log4net =
before=20
  privatebinpath is set-up, so we need this in the same=20
  directory<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"># as=20
  NAnt.exe<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">cp lib/log4net.dll=20
  bootstrap<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">cp =
src/NAnt.Console/App.config=20
  bootstrap/NAnt.exe.config<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">mono bootstrap/NAnt.exe=20
  -f:NAnt.build build<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">The assembly =
mscorlib.dll was not=20
  found or could not be loaded.<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">It should have been =
installed in=20
  the `/usr/local//lib/mono/2.0/mscorlib.dll'=20
  directory.<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">make: *** [build-nant] =
Error=20
  1<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Basically, I think this =
means it&#8217;s=20
  trying to use .NET 2.0, however this isn&#8217;t installed by default. =
As I said in=20
  a previous post, I was having nothing but trouble using the =
&#8211;with-preview=3Dyes=20
  &#8211; but should I be investigating that as a=20
  solution?<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Or is there some way to =
tell the=20
  mono executable to use the 1.0 runtime =
instead?<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Sorry, maybe this is a =
basic=20
  question: but I&#8217;ve had no luck finding help on the web for this =
stuff..=20
  </SPAN></FONT><FONT face=3DWingdings size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Wingdings">L</SPAN></FONT><FONT =

  face=3DArial size=3D2><SPAN style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial"> Your help=20
  is greatly appreciated!<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial">-e-<o:p></o:p></SPAN></FONT></P></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0025_01C5260D.E55747E0--