Skip to content

Nuget sources #11469

Answered by tcartwright
tcartwright asked this question in Q&A
Discussion options

You must be logged in to vote

NVM, I actually found the answer in this blog post.

https://www.meziantou.net/exploring-the-nuget-client-libraries.htm

This was the example I was looking for:

// Load machine and user settings
var settings = Settings.LoadDefaultSettings(null);

// Extract some data from the settings
string globalPackagesFolder = SettingsUtility.GetGlobalPackagesFolder(settings);
var sources = SettingsUtility.GetEnabledSources(settings);

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dominoFire
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant