Hello,
I just recently tried to migrate one of our projects from Ant to NAnt.
We have a solution that contains 45 projects and is all unmanaged C++. I
have two main issues:
1.) I have to specify <outputdir> in the solution tag. The reason
that I am required to: when I try to build the solution without it NAnt
reports that it is unable to determine the output directory. The other
problem here is that I now have to go through 45 projects and modify 6
configurations per project for this to work correctly. What can I do to
help NAnt determine what the output directories are automatically, also,
is there a project name variable that I can place in the solution tag to
possibly rebuild these output directories through NAnt? I ask because
none of our projects has a common output directory.
2.) After I modified a few projects, I get to one of our procedural
projects and I get this error:
"fatal error C1189: #error : "Bad VCC option: C++ exception handling
must be enabled""
I don't understand why I get this error because when I run devenv
command line in all configs with build/rebuild combinations I don't get
this error. Basically, I only have this error when using NAnt. Any ideas
why this would be an issue?
A disclaimer to the setup:
I had to mimic vsvars32.bat in the build file in order to get NAnt to
find cl.exe. Like so:
<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="v1.1.4322"/>
<variable name="FrameworkSDKDir" value="C:\Program Files\Microsoft
Visual Studio .NET 2003\SDK\v1.1"/>
<!--<variable name="VCINSTALLDIR=%VSINSTALLDIR%-->
<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>
Does anyone have any input on these problems? Does it all stem from the
fact that I had to mimic vsvars32.bat?
Any insight is appreciated,
-Nick
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users