As it stands we are finding csc from the framework directory using (System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory()) . The downside of this is that you will always get csc from the frameworkdir of the version of the framework that NAnt is running against. So if Nant is running against 1.0 there is no easy way to run 1.1 csc. At least when we got it from the path you could run vsvars32 from the right directory and then have nant pick up the version of csc that you wanted.
I'm thinking we need somthing similar to make's
Set CSC=csc.exe
so you could do
Set CSC=C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\csc.exe
or
Set CSC=mcs.exe

Ian

OK - Thanks!

Niels
----- Original Message ----- From: "Scott Hernandez" <[EMAIL PROTECTED]>
To: "Niels Berglund" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Monday, January 06, 2003 10:18 PM
Subject: Re: [Nant-users] Compiling with different versions of the framework



There isn't any direct support in NAnt for using a specific framework
version of the runtime. It totally depends on your environment when

running

NAnt.

Although it would be nice if this was a project setting that could target

a

specific version of the runtime without changing your environment.




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to