It seems this is already being handled in the vsvars32.bat and why not
just call it? I just can't seem to understand how to call the batch
file from %VS71COMNTOOLS% env.
Then I read to use the readregistry property which gave me an idea to
use to call the vsvars32.bat:
<target name="call_devenv">
<readregistry property="__ide.dir"
key="SOFTWARE\Microsoft\VisualStudio\7.1\InstallDir"
hive="LocalMachine" />
<exec
program="${__ide.dir}\devenv.exe "
commandline="${vsi.solution.file}" />
</target>
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Anderson,
Kelly
Sent: Monday, November 07, 2005 3:54 PM
To: [email protected]
Subject: RE: [Nant-users] Best approach to call vsvars32.bat
This is what I did thanks to some other helpful soul on the list.
-Kelly
<!-- sets up the path and such so that the IDE environment will work
correctly -->
<setenv>
<variable name="VSINSTALLDIR" value="C:\Program Files\Microsoft Visual
Studio .NET 2003\Common7\IDE"/>
<variable name="VCINSTALLDIR" value="C:\Program Files\Microsoft Visual
Studio .NET 2003"/>
<variable name="FrameworkDir"
value="C:\WINDOWS\Microsoft.NET\Framework"/>
<variable name="FrameworkVersion" value="1.1.4322"/>
<variable name="FrameworkSDKDir" value="C:\Program
Files\Microsoft.NET\SDK\v1.1"/>
<variable name="DevEnvDir" value="%VSINSTALLDIR%"/>
<variable name="MSVCDir" value="%VCINSTALLDIR%\VC7"/>
<variable name="PATH"
value="%DevEnvDir%;%MSVCDir%\BIN;%VCINSTALLDIR%\Common7\Tools;%VCINSTALL
DIR%\Common7\Tools\bin\prerelease;%VCINSTALLDIR%\Common7\Tools\bin;%Fram
eworkSDKDir%\bin;%FrameworkDir%\%FrameworkVersion%;%PATH%;"/>
<variable name="INCLUDE"
value="%MSVCDir%\ATLMFC\INCLUDE;%MSVCDir%\INCLUDE;%MSVCDir%\PlatformSDK\
include\prerelease;%MSVCDir%\PlatformSDK\include;%FrameworkSDKDir%\inclu
de;%INCLUDE%"/>
<variable name="LIB"
value="%MSVCDir%\ATLMFC\LIB;%MSVCDir%\LIB;%MSVCDir%\PlatformSDK\lib\prer
elease;%MSVCDir%\PlatformSDK\lib;%FrameworkSDKDir%\lib;%LIB%"/>
</setenv>
________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kedziora,
Rebecca
Sent: Monday, November 07, 2005 2:50 PM
To: [email protected]
Subject: [Nant-users] Best approach to call vsvars32.bat
Anyone,
On our build boxes we don't have the include or lib set up in
the system environment so in order to build we run the vsvars32.bat and
build the projects.
Would the vsvars32.bat be the best approach to execute or are
there better approaches to setting up the environment? After the build
is complete I don't want any environment left around. We want our
builds to establish it own environment since we have many builds with
different needs but share the same build box.
If vsvars32.bat is the best approach how do you execute it from
the build script?
I tried using the exec task but I am doing something wrong. I
am trying to use the environment %VS71COMNTOOLS% since that is where the
bat file resides.
Thanks,
Rebecca
E-Mail messages may contain viruses, worms, or other malicious code. By
reading the message and opening any attachments, the recipient accepts
full responsibility for taking protective action against such code.
Sender is not liable for any loss or damage arising from this message.
The information in this e-mail is confidential and may be legally
privileged. It is intended solely for the addressee(s). Access to this
e-mail by anyone else is unauthorized.
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your
very own Sony(tm)PSP. Click here to play:
http://sourceforge.net/geronimo.php
_______________________________________________
Nant-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Nant-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users