Skip to content

Commit

Permalink
docs(nuget): add hint for protocol version in NuGet.config (#27933)
Browse files Browse the repository at this point in the history
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
  • Loading branch information
fgreinacher and HonkingGoose committed Mar 18, 2024
1 parent e500e50 commit de9608b
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions docs/usage/nuget.md
Expand Up @@ -78,15 +78,26 @@ So Renovate behaves like the official NuGet client.

#### v3 feed URL not ending with index.json

If a `v3` feed URL does not end with `index.json`, you must append `#protocolVersion=3` to the registry URL:
If a `v3` feed URL does not end with `index.json`, you must specify the version explicitly.

```json
{
"nuget": {
"registryUrls": ["http://myV3feed#protocolVersion=3"]
- If the feed is defined in a `NuGet.config` file set the `protocolVersion` attribute to `3`:

```xml
<packageSources>
<clear />
<add key="myV3feed" value="http://myV3feed" protocolVersion="3" />
</packageSources>
```

- If the feed is defined via Renovate configuration append `#protocolVersion=3` to the registry URL:

```json
{
"nuget": {
"registryUrls": ["http://myV3feed#protocolVersion=3"]
}
}
}
```
```

You may need this workaround when you use the JFrog Artifactory.

Expand Down

0 comments on commit de9608b

Please sign in to comment.