Run the "svn info" command and parse the output
Namespace: MSBuild.Community.Tasks.Subversion
Assembly: MSBuild.Community.Tasks (in MSBuild.Community.Tasks.dll)
Syntax
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
Inheritance Hierarchy
System.Object
Microsoft.Build.Utilities.Task
Microsoft.Build.Utilities.ToolTask
MSBuild.Community.Tasks.Subversion.SvnClient
MSBuild.Community.Tasks.Subversion.SvnInfo
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
Documentation version 1.0.0.0.