----- Original Message -----
From: "Jo Vermeulen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 16, 2004 5:41 PM
Subject: [Nant-users] Checking for available assemblies


> Hello,
>
> I was wondering if there is a way to check for available assemblies in
> a nant build file.

At this moment, we don't have support for this (but we're definitely open to
suggestions ...  or patches ;-)).  We could provide function support for
this, but the problem is that it will always be dependent on the framework
on which NAnt is running.  eg. while running on MS .NET 1.0, you won't be
able to locate a .NET 2.0 assembly (at least not if you assert that its the
assembly you're looking for, by using Assembly.Load or
Assembly.LoadwithPartialName) because you can't load a .NET 2.0 assembly in
a .NET 1.0 hosted app.

> Our application support GTK#, wx.NET and System.Windows.Forms. Hence,
> I would like to build only the supported backends. I already looked at
> the <available> tag.

If all bindings (well, windows.forms definitely doesn't) provide a package
file, then you could use the pkg-config functions
(http://nant.sourceforge.net/nightly/help/functions/index.html#Unix/Cygwin)
to check whether a given package is installed.

>Thanks in advance,
>
>--
>Jo Vermeulen
>Student Computer Science at the LUC

Ge zijt bijna nen buur, ik ben van hasselt ! Limburg rulez ;-)

Gert




-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to