Hi John,

Support for 'DevEnvDir' is available in recent nightly build of NAnt
(http://nant.sourceforge.net/nightly/latest). 

Gert

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> John Sheppard
> Sent: donderdag 9 december 2004 21:55
> To: [EMAIL PROTECTED]
> Subject: [Nant-users] Question about <solution> task and pre 
> and post build events
> 
> Hi all,
>     Question reguarding using pre and post build events defined on VS 
> projects with the <solution> task.  Here is the scenerio.  I 
> have a remoting 
> service that needs to be stopped and uninstalled using installutil on 
> pre-build event and then installed and started on the 
> post-build event.  I 
> have the following defined in my pre:
> 
> Net Stop TropicosRemotingProvider
> call "$(DevEnvDir)..\Tools\vsvars32.bat"
> installutil.exe /u /LogToConsole=false "$(TargetPath)"
> 
> and the following defined in my post:
> 
> copy $(ProjectDir)LoggingConfiguration.Config $(ProjectDir)$(OutDir)
> call "$(DevEnvDir)..\Tools\vsvars32.bat"
> installutil.exe /LogToConsole=false "$(TargetPath)"
> Net Start TropicosRemotingProvider
> 
> I used the post processing events elsewhere within my 
> solution to copy 
> config files to the outdir.  It seems nant doesn't have a 
> problem with 
> 'ProjectDir', 'OutDir' or "TargetPath' macros but it doesn't 
> have any idea 
> what 'DevEnvDir' is.  I use this to get to the bat files to run the 
> vsvars32.bat file so that I can get to installutil.exe to install and 
> uninstall the service.  I know I could probably do this if I 
> wanted to write 
> a build file for each of my projects and call them one by 
> one, but it is so 
> much simpler and easier to maintain if I can just use the 
> solution task.  
> Any ideas?
> 
> Thanks,
> 
> John Sheppard
> 
> 
> 
> 
> -------------------------------------------------------
> 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