.NET can, on the other hand, start a process with particular environment
variables set. The <exec> task has an <environment> element for this
purpose. I use it to call devenv.exe and set the appropriate PATH,
INCLUDE, and LIB environment variable for that execution only.

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:nant-users-
> [EMAIL PROTECTED] On Behalf Of Merrill Cornish
> Sent: Wednesday, December 08, 2004 12:44 PM
> To: Eric Deslauriers; NAnt Users mailing list
> Subject: Re: [Nant-users] Creating/setting env variables
> 
> Eric,
> 
> Someone may have a clever/devious answer, but you may find that you
can
> NOT set environment variables from within NAnt--because .NET won't let
you
> set environment variables, just read them.  It's a security thing.
> 
> Merrill
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real
users.
> Discover which products truly live up to the hype. Start reading now.
> http://productguide.itmanagersjournal.com/
> _______________________________________________
> Nant-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/nant-users


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to