A task to merge and transform a set of xml files.
Namespace: MSBuild.Community.Tasks
Assembly: MSBuild.Community.Tasks (in MSBuild.Community.Tasks.dll)
Syntax
Example
This example for generating a report from a set of NUnit xml results:
Copy Code | |
---|---|
<ItemGroup> <nunitReportXslFile Include="$(MSBuildCommunityTasksPath)\$(nunitReportXsl)"> <project>$(project)</project> <configuration>$(configuration)</configuration> <msbuildFilename>$(MSBuildProjectFullPath)</msbuildFilename> <msbuildBinpath>$(MSBuildBinPath)</msbuildBinpath> <xslFile>$(MSBuildCommunityTasksPath)\$(nunitReportXsl)</xslFile> </nunitReportXslFile> </ItemGroup> <Target Name="test-report" > <Xslt Inputs="@(nunitFiles)" RootTag="mergedroot" Xsl="@(nunitReportXslFile)" Output="$(testDir)\TestReport.html" /> </Target> |
Copy Code | |
---|---|
<Time Format="yyyyMMddHHmmss"> <Output TaskParameter="LocalTimestamp" PropertyName="buildDate" /> </Time> <Xslt Inputs="@(xmlfiles)" RootTag="mergedroot" RootAttributes="foo=bar;date=$(buildDate)" Xsl="transformation.xsl" Output="report.html" /> |
Remarks
The xml files of parameter
If only one input file is provided, merging and wrapping can be omitted by setting
The root tag can be given any number of attributes by providing a list of semicolon-delimited name/value pairs to parameter
Copy Code | |
---|---|
RootAttributes="foo=bar;date=$(buildDate)" |
Parameter
Copy Code | |
---|---|
RootAttributes="" |
The xsl transformation file specified by parameter
The
The output is written to the file specified by parameter
Inheritance Hierarchy
Thread Safety
See Also
Documentation version 1.0.0.0.