Skip to content

bbtbir/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

Releases

No releases published

Packages

No packages published

Languages

  • C# 93.3%
  • PowerShell 6.7%