> I think MSBuild also has something similar, but I haven't yet 
> looked into it. Anyone know more about what they use ?

I just read some of their PDC slides, Word documents, and some
of http://msdn2.microsoft.com/en-us/library/0k6kkbsd(en-US,VS.80).aspx

It seems that MSBuild parameters can be output as well as input, and
they have a small set of types for parameters (not just strings).
The MSBuild task has an ITaskItem[] parameter called TargetOutputs.

So in MSBuild, one nests an "Output" element inside a task to bind a
property or an "Item" to a parameter. ITaskItem seems to be the analog
of an NAnt FileSet.

For concreteness, here's their sample build file demonstrating how
the MSBuild task takes ITaskItem[] input and provides ITaskItem[]
output:
---
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003";>

    <ItemGroup>
        <ProjectReferences Include="*.*proj" />
    </ItemGroup>

    <Target Name="BuildOtherProjects">
        <MSBuild
            Projects="@(ProjectReferences)"
            Targets="Build">
            <Output
                TaskParameter="TargetOutputs"
                ItemName="AssembliesBuiltByChildProjects" />
        </MSBuild>
    </Target>

</Project>
---

References:
Item Element: http://msdn2.microsoft.com/en-us/library/ms164283
Property Element: http://msdn2.microsoft.com/en-us/library/ms164288
Output Element: http://msdn2.microsoft.com/en-us/library/ms164287
MSBuild Task: http://msdn2.microsoft.com/en-us/library/z7f65y0d
MSBuild Items Concept: http://msdn2.microsoft.com/en-us/library/ms171453
MSBuild Property Concept: http://msdn2.microsoft.com/en-us/library/ms171458


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to