SvnVersion Class

MSBuild

Summarize the local revision(s) of a working copy.


Namespace: MSBuild.Community.Tasks.Subversion
Assembly: MSBuild.Community.Tasks (in MSBuild.Community.Tasks.dll)

Syntax

Visual Basic (Declaration)
Public Class SvnVersion
    Inherits ToolTask
C#
public class SvnVersion : ToolTask
C++
ref class SvnVersion : ToolTask
J#
public class SvnVersion extends ToolTask
JScript
public class SvnVersion extends ToolTask

Example

The following example gets the revision of the current folder.

 Copy Code
            <Target Name="Version">
              <SvnVersion LocalPath=".">
                <Output TaskParameter="Revision" PropertyName="Revision" />
              </SvnVersion>
              <Message Text="Revision: $(Revision)"/>
            </Target>
            

Inheritance Hierarchy

System.Object
   Microsoft.Build.Utilities.Task
      Microsoft.Build.Utilities.ToolTask
         MSBuild.Community.Tasks.Subversion.SvnVersion

Thread Safety

Public static (Shared in Visual Basic)staticShared members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

See Also

Syntax based on .NET Framework version 2.0.
Documentation version 1.0.0.0.