NGitLab.Mock
13.0.0
dotnet add package NGitLab.Mock --version 13.0.0
NuGet\Install-Package NGitLab.Mock -Version 13.0.0
<PackageReference Include="NGitLab.Mock" Version="13.0.0" />
<PackageVersion Include="NGitLab.Mock" Version="13.0.0" />
<PackageReference Include="NGitLab.Mock" />
paket add NGitLab.Mock --version 13.0.0
#r "nuget: NGitLab.Mock, 13.0.0"
#:package NGitLab.Mock@13.0.0
#addin nuget:?package=NGitLab.Mock&version=13.0.0
#tool nuget:?package=NGitLab.Mock&version=13.0.0
What is NGitLab?
NGitLab is a .NET client implementation for the GitLab REST API.
Usage
Start by creating a GitLabClient instance:
var client = new GitLabClient("https://mygitlab.example.com", "your_private_token");
Then use its properties. You can obtain the private token in your account page. You may want to create a custom user for the API usage.
For further info about the GitLab API, refer to the official documentation
Where can I get it?
Get it from nuget.org. You can simply install it using the dotnet CLI:
dotnet add package NGitLab
Running Unit Tests locally
- Install Docker on your machine
- It's recommended to use WSL version 2 (see here)
- Running the Docker-based integration tests (
NGitLab.Tests) under Linux requires PowerShell (pwsh) to be installed, because they start a GitLab runner that uses the PowerShell shell (see here)
Contributing
See CONTRIBUTING.md. In particular, changes to the public API are checked by snapshot tests: the page explains how to check them and how to update the snapshots.
Thanks
Thanks to Scooletz for creating the original project.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Framework | net472 is compatible. net48 was computed. net481 was computed. |
-
.NETFramework 4.7.2
- LibGit2Sharp (>= 0.32.0)
- NeoSmart.AsyncLock (>= 3.2.1)
- NGitLab (>= 13.0.0)
- YamlDotNet (>= 18.1.0)
-
net10.0
- LibGit2Sharp (>= 0.32.0)
- NeoSmart.AsyncLock (>= 3.2.1)
- NGitLab (>= 13.0.0)
- YamlDotNet (>= 18.1.0)
-
net8.0
- LibGit2Sharp (>= 0.32.0)
- NeoSmart.AsyncLock (>= 3.2.1)
- NGitLab (>= 13.0.0)
- YamlDotNet (>= 18.1.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 13.0.0 | 11 | 12/1/2026 |
| 12.6.1 | 315 | 11/2/2026 |
| 12.6.1-beta | 98 | 11/2/2026 |
| 12.5.0 | 275 | 10/9/2026 |
| 12.4.0 | 181 | 10/5/2026 |
| 12.3.0 | 16,922 | 9/11/2026 |
| 12.2.0 | 3,443 | 8/31/2026 |
| 12.1.0 | 1,271 | 8/27/2026 |
| 12.0.0 | 5,747 | 7/31/2026 |
| 11.9.0 | 4,945 | 7/2/2026 |
| 11.8.0 | 469 | 6/23/2026 |
| 11.7.0 | 3,052 | 4/8/2026 |
| 11.6.2 | 252 | 4/2/2026 |
| 11.6.1 | 279 | 3/24/2026 |
| 11.6.0 | 227 | 3/23/2026 |
| 11.5.0 | 889 | 3/2/2026 |
| 11.4.1 | 269 | 2/23/2026 |
| 11.4.0 | 268 | 2/17/2026 |
| 11.3.2 | 750 | 2/5/2026 |
| 11.3.1 | 231 | 2/4/2026 |