@@ -7,7 +7,60 @@ Installation
77
88The latest state of the module can be installed directly from the GitHub repository.
99
10- TBD.
10+ Install library from GitHub NuGet feed
11+ --------------------------------------
12+
13+ .. note ::
14+
15+ For details see: `GitHub Documentation <https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-nuget-registry >`_
16+
17+
18+ To authenticate to GitHub Packages with the dotnet command-line interface
19+ (CLI), create a nuget.config file in your project directory specifying
20+ GitHub Packages as a source under packageSources for the dotnet CLI client.
21+
22+ You must replace:
23+
24+ * USERNAME with the name of your personal account on GitHub.
25+ * TOKEN with your personal access token (classic).
26+
27+ .. code-block :: xml
28+ :caption: NuGet.Config
29+
30+ <?xml version =" 1.0" encoding =" utf-8" ?>
31+ <configuration >
32+ <packageSources >
33+ <clear />
34+ <add key =" github" value =" https://nuget.pkg.github.com/opentelekomcloud-community/index.json" />
35+ </packageSources >
36+ <packageSourceCredentials >
37+ <github >
38+ <add key =" Username" value =" USERNAME" />
39+ <add key =" ClearTextPassword" value =" TOKEN" />
40+ </github >
41+ </packageSourceCredentials >
42+ </configuration >
43+
44+
45+ Add or update package reference in the project file using the .NET CLI:
46+
47+ .. code-block :: shell
48+ :caption: dotnet add package
49+
50+ dotnet add package OpenTelekomCloud.API.Signing.Core --version 0.0.0-alpha.0
51+
52+ Alternative add the package reference to your project file:
53+
54+ .. code-block :: xml
55+ :caption: YOUR_PROJECT.csproj
56+
57+ <project Sdk =" Microsoft.NET.Sdk" >
58+
59+ <ItemGroup >
60+ <PackageReference Include =" OpenTelekomCloud.API.Signing.Core" Version =" *-*" />
61+ </ItemGroup >
62+
63+ </project >
1164
1265
1366 Install dotnet on Ubuntu
0 commit comments