-
Notifications
You must be signed in to change notification settings - Fork 256
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
Add protocolVersion argument to nuget source add #9170
Comments
Is there an ETA on this? Should be very easy to implement. |
Should also support |
This would be very cool to have. Especially in an automated environment where you want to add a source |
We prioritize investigations based on community engagement such as comments and up-votes. |
Linked #11871 as this issue is really causing trouble in CI pipelines, where NuGet sources are dynamically added via |
As a workaround, you can use a small powershell script in your CI:
Although using powershell to only set the protocolVersion would be easier:
If PowerShell isn't already available on your CI, PowerShell (Core) is available as a .NET Tool, so even on Linux and Mac, as long as you have the .NET SDK installed, it should be possible to use one of these. Unfortunately I couldn't find something similar to |
Thx @zivkan. We actually already patch the NuGet.config file along the way as part of our CI, however, I consider this a very hacky workaround and it is definitely not my go-to solution - and it doesn't solve the request to add the argument to the client 😉 - The scenario I linked, is just one example where the argument might come in handy... (while I actually think that it is a bug, that the attribute is required to successfully resolve the symbol stuff) As soon as I find the time, I plan to provide the required contribution to make this part of an upcoming release... |
Big thank you to @dotnokato for contributing a PR to implement this feature! I expect it to ship in NuGet 6.8 and the .NET 8.0.100 SDK. |
Please read the following information before posting the issue.
Details about Problem
NuGet product used (NuGet.exe | VS UI | Package Manager Console | dotnet.exe):
NuGet version (x.x.x.xxx): any
Worked before? If so, with which NuGet version: No
Feature request
Ability to specify protocolVersion property when adding new package source with CLI
The text was updated successfully, but these errors were encountered: