Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(nuget): add hint for protocol version in NuGet.config #27933

Merged
merged 2 commits into from Mar 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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