Hi Gert,

While preparing the files for the zip I discovered some things that I missed
because I was concentrated on build-events problems.

1.) It seems that if I build the project with MSVS, then successive
modifications of the test.cpp file are not detected from nant; in particular
if I introduce a sintax error after a MSVS build, Nant shows me a
"Succesfull build".

2.) If I clean all the project files (Debug folder) and start a Nant build,
it indicates that is impossible to find the stdafx.pch precompiled header;
if I set the project to compile without precompiled headers Nant indicates
that it is not able to find the <iostream> header.


Probably the build-events are not executed because these problems arise.

I hope there are no mistakes in this example project.

Thank you very much for the support.

Bye,


                Nicola


P.S.: I'm sorry for my bad english!






> ----- Original Message ----- 
> From: "Gert Driesen" <[EMAIL PROTECTED]>
> To: "Nicola Iuretigh" <[EMAIL PROTECTED]>
> Sent: Tuesday, October 12, 2004 8:08 AM
> Subject: Re: [Nant-users] Problems with pre-build event
>
>
> > Nicola,
> >
> > Can you send me a zip file containing a full repro, containing a project
> > with pre/post build and pre/post link events and matching batch files
that
> > it executes ?
> >
> > Thanks,
> >
> > Gert
> > ----- Original Message ----- 
> > From: "Nicola Iuretigh" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, October 08, 2004 4:27 PM
> > Subject: [Nant-users] Problems with pre-build event
> >
> >
> > > Hi,
> > >
> > > I met some problems using <solution> task with a VC++ project
(consolle
> > > application) created with VS.NET2003.
> > >
> > > In particular it seems that <solution> does not perform the pre-build
> > > event.
> > >
> > > I send you a test project and a nant build file that I have created
for
> > > simplicity of explanation.
> > >
> > > In the debug configuration the project has a pre-build event that
launch
> a
> > > .bat file.
> > > Running nant with the .build file does not execute the command.
> > >
> > > Did I make any mistake?
> > >
> > > I'm using NAnt 0.85 (nightly build 0.85.1732.0)
> > >
> > > Thank you very much,
> > >
> > >                            Nicola
> > >
> > >
> > >
> > > ============================== Test.build
==============================
> > >
> > > <project name="Test build script" default="Test" >
> > >
> > >    <target name="Test">
> > >
> > >        <solution configuration="Debug"
> > > solutionfile="C:\Temp\Test\Test.sln"
> > > verbose="true" />
> > >
> > >    </target>
> > >
> > > </project>
> > >
> > >
> > > P.S.: Test.sln contains only Test.vcproj project.
> > >
> > >
> > > ============================== Test.vcproj
> ==============================
> > > <?xml version="1.0" encoding="Windows-1252"?>
> > > <VisualStudioProject
> > > ProjectType="Visual C++"
> > > Version="7.10"
> > > Name="Test"
> > > ProjectGUID="{0EEFE5FD-AF1C-4BCB-9019-1C5EBEA64183}"
> > > Keyword="Win32Proj">
> > > <Platforms>
> > >  <Platform
> > >   Name="Win32"/>
> > > </Platforms>
> > > <Configurations>
> > >  <Configuration
> > >   Name="Debug|Win32"
> > >   OutputDirectory="Debug"
> > >   IntermediateDirectory="Debug"
> > >   ConfigurationType="1"
> > >   CharacterSet="2">
> > >   <Tool
> > >    Name="VCCLCompilerTool"
> > >    Optimization="0"
> > >    PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
> > >    MinimalRebuild="TRUE"
> > >    BasicRuntimeChecks="3"
> > >    RuntimeLibrary="5"
> > >    UsePrecompiledHeader="3"
> > >    WarningLevel="3"
> > >    Detect64BitPortabilityProblems="TRUE"
> > >    DebugInformationFormat="4"/>
> > >   <Tool
> > >    Name="VCCustomBuildTool"/>
> > >   <Tool
> > >    Name="VCLinkerTool"
> > >    OutputFile="$(OutDir)/Test.exe"
> > >    LinkIncremental="2"
> > >    GenerateDebugInformation="TRUE"
> > >    ProgramDatabaseFile="$(OutDir)/Test.pdb"
> > >    SubSystem="1"
> > >    TargetMachine="1"/>
> > >   <Tool
> > >    Name="VCMIDLTool"/>
> > >   <Tool
> > >    Name="VCPostBuildEventTool"/>
> > >   <Tool
> > >    Name="VCPreBuildEventTool"
> > >    CommandLine="PreBuildCommand.bat"/>
> > >   <Tool
> > >    Name="VCPreLinkEventTool"/>
> > >   <Tool
> > >    Name="VCResourceCompilerTool"/>
> > >   <Tool
> > >    Name="VCWebServiceProxyGeneratorTool"/>
> > >   <Tool
> > >    Name="VCXMLDataGeneratorTool"/>
> > >   <Tool
> > >    Name="VCWebDeploymentTool"/>
> > >   <Tool
> > >    Name="VCManagedWrapperGeneratorTool"/>
> > >   <Tool
> > >    Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
> > >  </Configuration>
> > >  <Configuration
> > >   Name="Release|Win32"
> > >   OutputDirectory="Release"
> > >   IntermediateDirectory="Release"
> > >   ConfigurationType="1"
> > >   CharacterSet="2">
> > >   <Tool
> > >    Name="VCCLCompilerTool"
> > >    PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
> > >    RuntimeLibrary="4"
> > >    UsePrecompiledHeader="3"
> > >    WarningLevel="3"
> > >    Detect64BitPortabilityProblems="TRUE"
> > >    DebugInformationFormat="3"/>
> > >   <Tool
> > >    Name="VCCustomBuildTool"/>
> > >   <Tool
> > >    Name="VCLinkerTool"
> > >    OutputFile="$(OutDir)/Test.exe"
> > >    LinkIncremental="1"
> > >    GenerateDebugInformation="TRUE"
> > >    SubSystem="1"
> > >    OptimizeReferences="2"
> > >    EnableCOMDATFolding="2"
> > >    TargetMachine="1"/>
> > >   <Tool
> > >    Name="VCMIDLTool"/>
> > >   <Tool
> > >    Name="VCPostBuildEventTool"/>
> > >   <Tool
> > >    Name="VCPreBuildEventTool"/>
> > >   <Tool
> > >    Name="VCPreLinkEventTool"/>
> > >   <Tool
> > >    Name="VCResourceCompilerTool"/>
> > >   <Tool
> > >    Name="VCWebServiceProxyGeneratorTool"/>
> > >   <Tool
> > >    Name="VCXMLDataGeneratorTool"/>
> > >   <Tool
> > >    Name="VCWebDeploymentTool"/>
> > >   <Tool
> > >    Name="VCManagedWrapperGeneratorTool"/>
> > >   <Tool
> > >    Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
> > >  </Configuration>
> > > </Configurations>
> > > <References>
> > > </References>
> > > <Files>
> > >  <Filter
> > >   Name="Source Files"
> > >   Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
> > >   UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}">
> > >   <File
> > >    RelativePath=".\stdafx.cpp">
> > >    <FileConfiguration
> > >     Name="Debug|Win32">
> > >     <Tool
> > >      Name="VCCLCompilerTool"
> > >      UsePrecompiledHeader="1"/>
> > >    </FileConfiguration>
> > >    <FileConfiguration
> > >     Name="Release|Win32">
> > >     <Tool
> > >      Name="VCCLCompilerTool"
> > >      UsePrecompiledHeader="1"/>
> > >    </FileConfiguration>
> > >   </File>
> > >   <File
> > >    RelativePath=".\Test.cpp">
> > >   </File>
> > >  </Filter>
> > >  <Filter
> > >   Name="Header Files"
> > >   Filter="h;hpp;hxx;hm;inl;inc;xsd"
> > >   UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}">
> > >   <File
> > >    RelativePath=".\stdafx.h">
> > >   </File>
> > >  </Filter>
> > >  <Filter
> > >   Name="Resource Files"
> > >   Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx"
> > >   UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}">
> > >  </Filter>
> > > </Files>
> > > <Globals>
> > > </Globals>
> > > </VisualStudioProject>
> > >
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.net email is sponsored by: IT Product Guide on
ITManagersJournal
> > > Use IT products in your business? Tell us what you think of them. Give
> us
> > > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out
> > > more
> > > http://productguide.itmanagersjournal.com/guidepromo.tmpl
> > > _______________________________________________
> > > Nant-users mailing list
> > > [EMAIL PROTECTED]
> > > https://lists.sourceforge.net/lists/listinfo/nant-users
> > >
> > >
> >
>



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to