Cool. I will probably do a little work to integrate these setting into the
.config file. I'd like to reduce the number of files a user needs, and that
we distribute.

Also, it may be good to load some defaults if there is no config/setting
file.

----- Original Message -----
From: "Ian MacLean" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 04, 2003 1:05 AM
Subject: [nant-dev] multiple framework support


>
> I just checked in support for using multiple frameworks from NAnt. You
> can now use multiple frameworks in the same build file and NAnt will run
> the tools from the appropriate directories. It doesn't support resolving
> assembly references yet so I guess for compact framework you'll still
> need to specify full paths for references.
>
> This means that if you set your current framework to "mono" <csc> will
> use mcs.exe and <resgen> will use <monoresgen>.
>
> Unfortunately monoresgen will fail because it does not handle the
> /compile flag. I'm going to patch monoresgen to support that.
>
> The syntax for setting the current framework is :
>
> <property name="nant.settings.currentframework" value = "NET-1.0" />
>
> you'll get a build error if you set it to an invalid framework name.
>
> by default it will use the defaultframework attribute from the
> NAnt.Settings file.
>
> This means you can now do the following:
>
>       <property name="nant.settings.currentframework" value = "NET-1.0" />
>       <csc output="foo.exe" target = "exe">
>             ...
>          </csc>
>
>          <property name="nant.settings.currentframework" value = "mono" />
>          <!-- will now build using mcs.exe from mono -->
> <csc output="foo.exe" target = "exe">
>            ...
>          </csc>
>
> Settings are loaded from a NAnt.Settings file located in the same dir as
> NAnt.exe. Right now there are settings for installed Frameworks and also
> for global properties.
>
> Ian
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Etnus, makers of TotalView, The
debugger
> for complex code. Debugging C/C++ programs can leave you feeling lost and
> disoriented. TotalView can help you find your way. Available on major UNIX
> and Linux platforms. Try it free. www.etnus.com
> _______________________________________________
> Nant-developers mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/nant-developers
>
>



-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
_______________________________________________
Nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to