Title: <solution> task - Fails on VC++ project (vcproj)

Hello all,

I'm attempting to use the <solution> task with a solution that has 6 C# projects (*.csproj) and 1 Managed C++ project (*.vcproj).  Note that the solution file compiles without issue in the VS.NET 2003 IDE.

The NAnt build however, produces

[cl] c:\mybuilds\src\MyProjects\MyClass.cpp(6) : fatal error C1083: Cannot open include file: 'iostream': No such file or directory 

[cl] Generating Code...
BUILD FAILED
External Program Failed: cl (return code was 2)


The <solution> task in my build script is quite straightforward


<solution solutionfile="${SourceFolder}\${SolutionFileName}" outputdir="${AssemblyOutputFolder}" configuration="${SolutionConfig}">

        <excludeprojects>
                <include name="${SourceFolder}\**\*.dbp" />
        </excludeprojects>
</solution>


Is there some setting or property I need to set in order for the cl.exe to pick up the predefined headers?


--Ajit

 
 
This message, including any attachments, is intended only for the use of the individual(s) to which it is addressed and may contain information that is privileged/confidential.  Any other distribution, copying or disclosure is strictly prohibited.  If you are not the intended recipient or have received this message in error, please notify us immediately by reply e-mail and permanently delete this message including any attachments, without reading it or making a copy.

Reply via email to