📄 msbuild.community.tasks.xml
字号:
Parse the text output from the command and log the lines.
</summary>
<param name="singleLine">One line of text output from the tool being run.</param>
<param name="messageImportance">The message importance.</param>
</member>
<member name="P:MSBuild.Community.Tasks.Subversion.SvnInfo.RepositoryRoot">
<summary>
Return the repository root or null if not set by Subversion.
</summary>
</member>
<member name="P:MSBuild.Community.Tasks.Subversion.SvnInfo.RepositoryUuid">
<summary>
Return the repository UUID value from Subversion.
</summary>
</member>
<member name="P:MSBuild.Community.Tasks.Subversion.SvnInfo.NodeKind">
<summary>
The Subversion node kind.
</summary>
<enum cref="T:MSBuild.Community.Tasks.Subversion.NodeKind"/>
</member>
<member name="P:MSBuild.Community.Tasks.Subversion.SvnInfo.LastChangedAuthor">
<summary>
The author who last changed this node.
</summary>
</member>
<member name="P:MSBuild.Community.Tasks.Subversion.SvnInfo.LastChangedRevision">
<summary>
The last changed revision number.
</summary>
</member>
<member name="P:MSBuild.Community.Tasks.Subversion.SvnInfo.LastChangedDate">
<summary>
The date this node was last changed.
</summary>
</member>
<member name="P:MSBuild.Community.Tasks.Subversion.SvnInfo.Schedule">
<summary>
The Subversion schedule type.
</summary>
<enum cref="T:MSBuild.Community.Tasks.Subversion.Schedule"/>
</member>
<member name="T:MSBuild.Community.Tasks.Time">
<summary>
Gets the current date and time.
</summary>
<remarks>
See
<a href="ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.NETDEVFX.v20.en/cpref8/html/T_System_Globalization_DateTimeFormatInfo.htm">
DateTimeFormatInfo</a>
for the syntax of the format string.
</remarks>
<example>Using the Time task to get the Month, Day,
Year, Hour, Minute, and Second:
<code><![CDATA[
<Time>
<Output TaskParameter="Month" PropertyName="Month" />
<Output TaskParameter="Day" PropertyName="Day" />
<Output TaskParameter="Year" PropertyName="Year" />
<Output TaskParameter="Hour" PropertyName="Hour" />
<Output TaskParameter="Minute" PropertyName="Minute" />
<Output TaskParameter="Second" PropertyName="Second" />
</Time>
<Message Text="Current Date and Time: $(Month)/$(Day)/$(Year) $(Hour):$(Minute):$(Second)" />]]></code>
Set property "BuildDate" to the current date and time:
<code><![CDATA[
<Time Format="yyyyMMddHHmmss">
<Output TaskParameter="FormattedTime" PropertyName="buildDate" />
</Time>]]></code>
</example>
</member>
<member name="M:MSBuild.Community.Tasks.Time.Execute">
<summary>
When overridden in a derived class, executes the task.
</summary>
<returns>
True if the task successfully executed; otherwise, false.
</returns>
</member>
<member name="P:MSBuild.Community.Tasks.Time.Format">
<summary>
Gets or sets the format string
for output parameter <see cref="P:MSBuild.Community.Tasks.Time.FormattedTime"/>.
</summary>
<remarks>
See
<a href="ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.NETDEVFX.v20.en/cpref8/html/T_System_Globalization_DateTimeFormatInfo.htm">
DateTimeFormatInfo</a>
for the syntax of the format string.
</remarks>
</member>
<member name="P:MSBuild.Community.Tasks.Time.Month">
<summary>
Gets the month component of the date represented by this instance.
</summary>
</member>
<member name="P:MSBuild.Community.Tasks.Time.Day">
<summary>
Gets the day of the month represented by this instance.
</summary>
</member>
<member name="P:MSBuild.Community.Tasks.Time.Year">
<summary>
Gets the year component of the date represented by this instance.
</summary>
</member>
<member name="P:MSBuild.Community.Tasks.Time.Hour">
<summary>
Gets the hour component of the date represented by this instance.
</summary>
</member>
<member name="P:MSBuild.Community.Tasks.Time.Minute">
<summary>
Gets the minute component of the date represented by this instance.
</summary>
</member>
<member name="P:MSBuild.Community.Tasks.Time.Second">
<summary>
Gets the seconds component of the date represented by this instance.
</summary>
</member>
<member name="P:MSBuild.Community.Tasks.Time.Millisecond">
<summary>
Gets the milliseconds component of the date represented by this instance.
</summary>
</member>
<member name="P:MSBuild.Community.Tasks.Time.Ticks">
<summary>
Gets the number of ticks that represent the date and time of this instance.
</summary>
</member>
<member name="P:MSBuild.Community.Tasks.Time.Kind">
<summary>
Gets or sets a value that indicates whether the time represented by this instance is based
on local time, Coordinated Universal Time (UTC), or neither.
</summary>
<remarks>
Possible values are:
<list type="ul">
<item>Local (default)</item>,
<item>Utc</item>,
<item>Unspecified</item>
</list>
</remarks>
<enum cref="T:System.DateTimeKind"/>
</member>
<member name="P:MSBuild.Community.Tasks.Time.TimeOfDay">
<summary>
Gets the time of day for this instance.
</summary>
</member>
<member name="P:MSBuild.Community.Tasks.Time.DayOfYear">
<summary>
Gets the day of the year represented by this instance.
</summary>
</member>
<member name="P:MSBuild.Community.Tasks.Time.DayOfWeek">
<summary>
Gets the day of the week represented by this instance.
</summary>
</member>
<member name="P:MSBuild.Community.Tasks.Time.FormattedTime">
<summary>
Gets the value of this instance to its equivalent string representation.
If input parameter <see cref="P:MSBuild.Community.Tasks.Time.Format"/> is provided,
the value is formatted according to it.
</summary>
</member>
<member name="P:MSBuild.Community.Tasks.Time.ShortDate">
<summary>
Gets the value of this instance to its equivalent short date string representation.
</summary>
</member>
<member name="P:MSBuild.Community.Tasks.Time.LongDate">
<summary>
Gets the value of this instance to its equivalent long date string representation.
</summary>
</member>
<member name="P:MSBuild.Community.Tasks.Time.ShortTime">
<summary>
Gets the value of this instance to its equivalent short time string representation.
</summary>
</member>
<member name="P:MSBuild.Community.Tasks.Time.LongTime">
<summary>
Gets the value of this instance to its equivalent long time string representation.
</summary>
</member>
<member name="P:MSBuild.Community.Tasks.Time.DateTimeValue">
<summary>
Gets the internal time value.
</summary>
</member>
<member name="T:MSBuild.Community.Tasks.Xslt">
<summary>
A task to merge and transform
a set of xml files.
</summary>
<remarks>
<p>
The xml files of parameter <see cref="P:MSBuild.Community.Tasks.Xslt.Inputs"/>
are merged into one xml document,
wrapped with a root tag <see cref="P:MSBuild.Community.Tasks.Xslt.RootTag"/>
(defaults to <see cref="F:MSBuild.Community.Tasks.Xslt.DEFAULT_ROOT_TAG"/>).
</p>
<p>
If only one input file is provided,
merging and wrapping can be omitted
by setting <see cref="P:MSBuild.Community.Tasks.Xslt.RootTag"/> to an empty string.
</p>
<p>
The root tag can be given any number of attributes
by providing a list of semicolon-delimited name/value pairs
to parameter <see cref="P:MSBuild.Community.Tasks.Xslt.RootAttributes"/>.
For example: <code>RootAttributes="foo=bar;date=$(buildDate)"</code>
</p>
<p>
Parameter <see cref="P:MSBuild.Community.Tasks.Xslt.RootAttributes"/> defaults to
one attribute with a name specified by <see cref="F:MSBuild.Community.Tasks.Xslt.CREATED_ATTRIBUTE"/>,
and a local time stamp as value.
To suppress the default value, an empty parameter
<code>RootAttributes=""</code>
must be specified explicitely.
</p>
<p>
The xsl transformation file
specified by parameter <see cref="P:MSBuild.Community.Tasks.Xslt.Xsl"/>
is applied on the input.
</p>
<p>
The <see cref="T:Microsoft.Build.Framework.ITaskItem"/> <see cref="P:MSBuild.Community.Tasks.Xslt.Xsl"/>
can be given any number of metadata,
which will be handed to the xsl transformation
as parameters.
</p>
<p>
The output is written to the file
specified by parameter <see cref="P:MSBuild.Community.Tasks.Xslt.Output"/>.
</p>
</remarks>
<example>
This example for generating a report
from a set of NUnit xml results:
<code><![CDATA[
<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)"
Xsl="@(nunitReportXslFile)"
Output="$(testDir)\TestReport.html" />
</Target>]]></code>
This examples shows all available task attributes:
<code><![CDATA[
<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"
/>]]></code>
</example>
</member>
<member name="F:MSBuild.Community.Tasks.Xslt.DEFAULT_ROOT_TAG">
<summary>
The default value for <see cref="P:MSBuild.Community.Tasks.Xslt.RootTag"/>.
The value is <c>"mergedroot"</c>.
</summary>
</member>
<member name="F:MSBuild.Community.Tasks.Xslt.CREATED_ATTRIBUTE">
<summary>
The name of the default attribute
of the <see cref="P:MSBuild.Community.Tasks.Xslt.RootTag"/>.
The value is <c>"created"</c>,
and the attribute will contain a local time stamp.
</summary>
</member>
<member name="M:MSBuild.Community.Tasks.Xslt.Execute">
<summary>
When overridden in a derived class, executes the task.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -