I added the following to my .build to get past this issue when building C++…

 

        <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;%VCINSTALLDIR%\Common7\IDE;%VCINSTALLDIR%\Common7\Tools\bin\prerelease;%VCINSTALLDIR%\Common7\Tools\bin;%FrameworkSDKDir%\bin;%FrameworkDir%\%FrameworkVersion%;%PATH%;"/>

                                    <variable name="INCLUDE" value="%MSVCDir%\ATLMFC\INCLUDE;%MSVCDir%\INCLUDE;%MSVCDir%\PlatformSDK\include\prerelease;%MSVCDir%\PlatformSDK\include;%FrameworkSDKDir%\include;%INCLUDE%;"/>

                                    <variable name="LIB" value="%MSVCDir%\ATLMFC\LIB;%MSVCDir%\LIB;%MSVCDir%\PlatformSDK\lib\prerelease;%MSVCDir%\PlatformSDK\lib;%FrameworkSDKDir%\lib;%LIB%;"/>

                        </setenv>

 

Basically it reproduces what would have been done by executing the vsvars32.bat…

 

~Robert

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Asis Yuval
Sent: Thursday, July 28, 2005 4:52 AM
To: [email protected]
Subject: [Nant-users] Error while building C++ solution

 

Hello everybody,

 

I have this error during using nant for building C++ solution:

 

[cl] stdafx.cpp

[cl] d:\....\stdafx.h(10) : fatal error C1083: Cannot open include file: "afxwin.h": no such file or directory

 

I am using D:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\vsvars32.bat

and although I have this error.

 

Any idea how can it solved ???

 

Thanks

 

        Yuval Asis

 

The information contained in this communication is proprietary to Israel Aircraft Industries Ltd.
and/or third parties, may contain confidential or privileged information, and is intended only for
the use of the intended addressee thereof. If you are not the intended addressee, please be aware
that any use, disclosure, distribution and/or copying of this communication is strictly prohibited.
If you receive this communication in error, please notify the sender immediately and delete it from
your computer. Thank you.




This message is processed by the PrivaWall Email Security Server.

Reply via email to