Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.56 KB

README.md

File metadata and controls

31 lines (22 loc) · 1.56 KB

Azure DevOps URL parser

NuGet Build status Build status Coverage Status

This NuGet package contains code for parsing Azure DevOps and Azure DevOps Server URLs.

License

How to use

To use the Azure DevOps URL parser you need to add the TfsUrlParser NuGet package.

    var repositoryDescription =
        new RepositoryDescription(
            "http://myserver:8080/tfs/defaultcollection/myproject/_git/myrepository");

    Console.WriteLine(repositoryDescription.ServerUrl);
    Console.WriteLine(repositoryDescription.CollectionUrl);
    Console.WriteLine(repositoryDescription.CollectionName);
    Console.WriteLine(repositoryDescription.ProjectName);
    Console.WriteLine(repositoryDescription.RepositoryUrl);
    Console.WriteLine(repositoryDescription.RepositoryName);

Build

dotnet build .\src\TfsUrlParser.sln