Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bbtsoftware/tfsurlparser
Parser for Azure DevOps URLs
https://github.com/bbtsoftware/tfsurlparser
azure-devops git nuget-package parser repository tfs url
Last synced: about 2 months ago
JSON representation
Parser for Azure DevOps URLs
- Host: GitHub
- URL: https://github.com/bbtsoftware/tfsurlparser
- Owner: bbtsoftware
- License: mit
- Created: 2017-03-24T09:35:03.000Z (almost 8 years ago)
- Default Branch: develop
- Last Pushed: 2024-11-20T10:50:44.000Z (3 months ago)
- Last Synced: 2024-12-07T07:03:04.548Z (about 2 months ago)
- Topics: azure-devops, git, nuget-package, parser, repository, tfs, url
- Language: C#
- Homepage:
- Size: 164 KB
- Stars: 3
- Watchers: 5
- Forks: 4
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Azure DevOps URL parser
[![NuGet](https://img.shields.io/nuget/v/TfsUrlParser.svg)](https://www.nuget.org/packages/TfsUrlParser)
[![Build status](https://github.com/bbtsoftware/TfsUrlParser/actions/workflows/dotnet.yml/badge.svg?branch=develop)](https://github.com/bbtsoftware/TfsUrlParser/actions/workflows/dotnet.yml)
[![Build status](https://github.com/bbtsoftware/TfsUrlParser/actions/workflows/release.yml/badge.svg)](https://github.com/bbtsoftware/TfsUrlParser/actions/workflows/release.yml)
[![Coverage Status](https://codecov.io/gh/bbtsoftware/TfsUrlParser/branch/develop/graph/badge.svg?token=0VLbB8a8EF)](https://codecov.io/gh/bbtsoftware/TfsUrlParser)This NuGet package contains code for parsing Azure DevOps and Azure DevOps Server URLs.
[![License](http://img.shields.io/:license-mit-blue.svg)](https://github.com/bbtsoftware/TfsUrlParser/blob/master/LICENSE)
## How to use
To use the Azure DevOps URL parser you need to add the [TfsUrlParser NuGet package](https://www.nuget.org/packages/TfsUrlParser/).
```csharp
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`