Here are my (non-official) thoughts:

Setting currentframework and/or changing the default in nant.exe.config
is the correct thing to do.  Along with that, you should remove the
frompath="true" attributes.  

I can't think of a scenario where you would want frompath="true" on a
reference.  For your own assemblies or non-framework third party
assemblies, specify the absolute or relative path to the references.
For framework assemblies, just use the name of the assembly and set
asis="true" for that reference.  If you specify asis="true" then csc.exe
will find the correct reference (and Nant will use the correct csc.exe
because you set the curentframework).

-----Original Message-----
From: Miller, Kevin [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 21, 2003 10:35 AM
To: [EMAIL PROTECTED]
Subject: [Nant-users] Framework Targeting

We are targeting the 1.1 framework. We changed our build scripts to
include:

<property name="nant.settings.currentframework" value ="net-1.1"/>

However I noticed that 1.0 dlls were still being referenced for
assemblies referenced via frompath="true". The cause was the fact that I
had the builds running from a ".NET command prompt" or a command
environment with vcvars32.bat run from the VS.NET 2002 version. 

I changed the batch file invoking the build to use the new environment
variable VS71COMNTOOLS but I imagine this setup is not standard or
ideal. 

What is the proper way to set a build to go against a given framework?
Is setting the nant.settings.currentframework good enough? 



-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users



-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to