Skip to content

bbtsoftware/TfsUrlParser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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