-
Notifications
You must be signed in to change notification settings - Fork 258
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
[Bug Bash] There will be a duplicated package source when modifying the name of source “Microsoft Visual Studio Offline Packages” #13057
Comments
I'd also like to point out that the source "moved" from a "machine wide" package source, into the user's own nuget.config, which is not desirable. It might not have the same root cause as the duplicate issue, but if possible it would be nice to avoid if not too much extra work. |
Hi @donnie-msft, the offline package source is read-only if it locates in "Machine-wide package sources:" section as your screenshot above [it seems a by-design scenario]. You can close VS, reopen the project again and reopen the "Options->NuGet Package Manager->Package Sources", and then you will find it go upstairs (in the "Package sources:" section as below). And you can modify the name now. |
Hi @donnie-msft, thanks for your detailed verification. No, I didn't disable the machine-wide package source intentionally. I think it is not related to the enabling/disabling this checkbox before modifying the Name in step4. I have verified these two scenarios, they both repro. |
It still reproes on VS Main\35222.175 + NuGet Client Dev\6.12.0.82. |
NuGet Product Used
Visual Studio Package Management UI
Product Version
Dev\6.9.0.45
Worked before?
It doesn’t repro on 17.6 (D17.6\34302.98) and 16.11 (D16.11\34301.259).
Impact
None
Repro Steps & Context
Repro Steps:
1.Create a C# Console App (.NET Core 8.0) project in VS and open the PM UI or PMC window.
2.Click the settings button (gear button) on PM UI or PMC window.
3.Click the NuGet Package Manager->Package Sources in the opened “Options” window.
4.Select the source “Microsoft Visual Studio Offline Packages” in the "Package sources" list -- not the one in "Machine-wide package sources:" section, modify the name in the “Name” textbox and click the OK button.
5.Click the settings button (gear button) on PM UI or PMC window and click the “Package Sources” node again.
Expected Results:
There should not be a duplicated package source in step5. Or the source “Microsoft Visual Studio Offline Packages” should not be modified in step4. The same source cannot be modified (as below screenshot) in the auto-created offline package source after deleting the default “nuget.config” file.
Actual Results:
There will be a duplicated package source as below screenshot.
Notes:
Repro rate: 100%.
Verbose Logs
No response
The text was updated successfully, but these errors were encountered: