Hi all.
I've been trying to introduce NAnt in my company's
build process. Unfortunately I've ran into problems.
I've spent over a week trying to sort things out and
feel I'm nearly there.
First tried using <solution> but since it wasn't taking
the order of compilations as defined in the *.sln file
into account it did not work. The algorithm used started
the first compile of a project that had several dependencies.
That top sln file had 23 projects in it.
On to <slingshot>, it generated build files that could not
handle the file structure, and seemed to copy output to
other places then normal from *.sln files, and generally
did not comply to what the *.sln files it converted would do.
Onto manually specifying each and every csproj file...
This works great, but when I try to use foreach to make
it generic, I just can't seem to get it to work the way
I read it ought to. I'm trying to recursively enumerate
all directories, then for each directory enumerate all the
*.csproj files and feed those off to compile:
<foreach item="Folder" property="foldername">
<in>
<items>
<includes name='**' />
</items>
</in>
<do>
<foreach item='File' in='${foldername}' property='filename'>
<in>
<items>
<excludes name='**/*.sig' />
<includes name='**/*.csproj' />
</items>
</in>
<do>
<echo message='Compiling project file ${filename}' />
</do>
</foreach>
</do>
</foreach>
Also played with exclusions that also does not work.
No matter what I do, I get all files enumerated. Can't seem
to find anything like this in docs or in the mailing list or on
google. I would think it's not such an uncommon problem to solve?
Any kind soul got some ideas, or at least a comforting word or two?
/Nicklas Norling
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users