- Itmo.Dev.Platform.Common
- Itmo.Dev.Platform.YandexCloud
- Itmo.Dev.Platform.Kafka
- Itmo.Dev.Platform.Postgres
- Itmo.Dev.Platform.Logging
- Itmo.Dev.Platform.BackgroundTasks
- Add
nuget.config
file next to your*.sln
file (if one does not exists) - Prepare your GitHub personal access token with
packages:read
permission - Add reference to
itmo-is-dev
GitHub nuget repository<?xml version="1.0" encoding="utf-8"?> <configuration> <packageSources> <add key="github" value="https://nuget.pkg.github.com/itmo-is-dev/index.json"/> </packageSources> <packageSourceMapping> <packageSource key="github"> <package pattern="Itmo.Dev.Platform*" /> </packageSource> </packageSourceMapping> </configuration>
- When prompted for authorization, use your github username as username, and generated PAT as password
Alternatively, you can use CLI to add package source. Code below will add source into your global config.
If you want to add it into local config, you should run it with option --configfile nuget.config
dotnet nuget add source --username YOUR_USERNAME --password YOUR_GITHUB_PAT --store-password-in-clear-text --name github "https://nuget.pkg.github.com/itmo-is-dev/index.json"
Adding source into local config, will result in credentials be written into local file
Be aware that it may lead to credentials leaking into VSC
You can store credentials separately from source definition, in global nuget.config