SvnInfo Class

MSBuild

Run the "svn info" command and parse the output


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

Syntax

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

Example

This example will determine the Subversion repository root for a working directory and print it out.

 Copy Code
            <Target Name="printinfo">
              <SvnInfo LocalPath="c:\code\myapp">
                <Output TaskParameter="RepositoryRoot" PropertyName="root" />
              </SvnInfo>
              <Message Text="root: $(root)" />
            </Target>
            

Remarks

You can retrieve Subversion information for a LocalPath or RepositoryPath. If you do not provide a value for LocalPath or RepositoryPath, the current directory is assumed.

Inheritance Hierarchy

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

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.