private static XmlDocument GetConfigDocument()
{
var configPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "NuGet", "NuGet.config");
if (File.Exists(configPath))
{
var document = new XmlDocument();
document.Load(configPath);
return document;
}
return null;
}