Skip to content

GH4834: Use --source for dotnet tool install on .NET 9+#4835

Merged
devlead merged 1 commit into
cake-build:developfrom
devlead:feature/gh-4834
May 19, 2026
Merged

GH4834: Use --source for dotnet tool install on .NET 9+#4835
devlead merged 1 commit into
cake-build:developfrom
devlead:feature/gh-4834

Conversation

@devlead

@devlead devlead commented May 19, 2026

Copy link
Copy Markdown
Member
  • Emit --source instead of --add-source when installing tools with an explicit NuGet feed on net9.0/net10.0 builds (NET9_0_OR_GREATER)
  • Keep --add-source for net8.0 for backward compatibility
  • Add integration tests that install and update GitVersion.Tool via dotnet:https://api.nuget.org/v3/index.json
  • fixes .NET Tool installer switch from --add-source to --source for .NET 9 & 10 #4834

- Emit `--source` instead of `--add-source` when installing tools with an
  explicit NuGet feed on net9.0/net10.0 builds (`NET9_0_OR_GREATER`)
- Keep `--add-source` for net8.0 for backward compatibility
- Add integration tests that install and update GitVersion.Tool via
  `dotnet:https://api.nuget.org/v3/index.json`
- fixes cake-build#4834
@devlead devlead changed the title (GH-4834) Use --source for dotnet tool install on .NET 9+ GH4834: Use --source for dotnet tool install on .NET 9+ May 19, 2026
@devlead devlead merged commit 4ad5f9b into cake-build:develop May 19, 2026
16 of 17 checks passed
This was referenced May 22, 2026
This was referenced May 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

.NET Tool installer switch from --add-source to --source for .NET 9 & 10

1 participant