[Mono-list] Anyone ever tried to run NAnt on mono on Windows?

Gert Driesen gert.driesen at telenet.be
Fri Dec 2 03:37:45 EST 2005


Atsushi,

You don't happen to know how to detect whether a (.NET) app is running in a
cygwin environment ?

Gert 

> -----Original Message-----
> From: mono-list-bounces at lists.ximian.com 
> [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Atsushi Eno
> Sent: vrijdag 2 december 2005 8:36
> To: Gert Driesen
> Cc: 'mono-list mailing list'
> Subject: Re: [Mono-list] Anyone ever tried to run NAnt on 
> mono on Windows?
> 
> Hi Gert,
> 
> Gert Driesen wrote:
> > Hi Atsushi
> > 
> > Not sure what the effect of that registry bug was ,but the 
> Mono 1.1.9.2
> > release was working just fine here for running a version of 
> NAnt built using
> > .NET 1.1.  However its failing badly attempting to run NAnt 
> built using .NET
> > 2.0:
> > 
> > ** ERROR **: Can't find custom attr constructor image: 
> <path to NAnt.exe>
> > mtoken: 0x0a000012
> > 
> > Do you actually installed Mono using a Windows installer, 
> or built it from
> > source ?
> 
> I was trying to build nant from source in cvs (also failed from
> 0.85rc3 source archive), by doing "make".
> 
> > Up until now, NAnt needed the registry key created by the 
> Mono installer to
> > determine 
> > 
> > a) whether Mono was actually installed
> > b) what the installation directory was
> > c) what version was actually installed
> > 
> > On Linux, we use pkg-config for this purpose.
> > 
> > I'll see if I can use pkg-config for this purpose on 
> Windows too (for those
> > building Mono from source in cygwin). Should not be that hard.
> 
> Thanks, that would be nice. Anyways the registry check does not seem
> important, so I'll try to continue the build just skipping it.
> 
> Atsushi Eno
> 
> > Gert
> > 
> >> -----Original Message-----
> >> From: mono-list-bounces at lists.ximian.com 
> >> [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of 
> Atsushi Eno
> >> Sent: vrijdag 2 december 2005 3:19
> >> To: mono-list mailing list
> >> Subject: [Mono-list] Anyone ever tried to run NAnt on mono 
> on Windows?
> >>
> >> Anyone ever tried to run NAnt on mono on Windows?  It complains
> >> that I don't have Registry key:
> >>
> >> Unhandled Exception: System.Reflection.TargetInvocationException:
> >> Exception has been thrown by the target of an invocation. ---> The
> >> current runtime framework 'mono-2.0' is not correctly 
> >> configured in the
> >> NAnt configuration file.:
> >> NAnt.Core.BuildException: The current runtime framework 
> 'mono-2.0' is
> >> not correctly configured in the NAnt configuration file. 
> ---> Registry
> >> Path Not Found! -
> >> key='SOFTWARE\Mono\';hive='Microsoft.Win32.RegistryHive[]';:
> >> NAnt.Core.BuildException: Registry Path Not Found! -
> >> key='SOFTWARE\Mono\';hive='Microsoft.Win32.RegistryHive[]';
> >> in <0x00184> NAnt.Win32.Tasks.ReadRegistryTask:LookupRegKey
> >> (System.String key,Microsoft.Win32.RegistryHive[] registries)
> >> in <0x00056> NAnt.Win32.Tasks.ReadRegistryTask:ExecuteTask ()
> >>
> >> I just fixed a bug on our MS.Win32 registry code, but now I
> >> wonder if there is another bug in Mono, or am just missing
> >> something.
> >>
> >> Atsushi Eno
> >> _______________________________________________
> >> Mono-list maillist  -  Mono-list at lists.ximian.com
> >> http://lists.ximian.com/mailman/listinfo/mono-list
> >>
> > 
> > 
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
> 



More information about the Mono-list mailing list