From 8f54847e0abe44c6ca37e1631c60223869d142b0 Mon Sep 17 00:00:00 2001 From: Philip <42116482+PhilipAbed@users.noreply.github.com> Date: Fri, 12 Aug 2022 07:57:11 +0300 Subject: [PATCH] docs: Update private-packages.md nuget section (#16942) --- docs/usage/getting-started/private-packages.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/docs/usage/getting-started/private-packages.md b/docs/usage/getting-started/private-packages.md index 37afd34d9de68f..7955afb019aa13 100644 --- a/docs/usage/getting-started/private-packages.md +++ b/docs/usage/getting-started/private-packages.md @@ -322,7 +322,18 @@ npmRegistries: ### nuget For each known NuGet registry, Renovate searches for `hostRules` with `hostType=nuget` and matching host. -For those found, a command similar to the following is run: `dotnet nuget add source ${registryInfo.feedUrl} --configfile ${nugetConfigFile} --username ${username} --password ${password} --store-password-in-clear-text` +For those found, a command like the following is run: `dotnet nuget add source ${registryInfo.feedUrl} --configfile ${nugetConfigFile} --username ${username} --password ${password} --store-password-in-clear-text`. + +```js +hostRules: [ + { + matchHost: 'https://pkgs.dev.azure.com//', + hostType: 'nuget', + username: 'user', // doesn't matter for azure + password: '', + }, +]; +``` ### poetry