public override List<InstalledPackage> FillPackages()
{
var fileName = Path.Combine(dataFolder, Constants.InstalledPackagesXml);
if (!File.Exists(fileName))
{
return null;
}
var doc = new XmlDocument();
doc.Load(fileName);
return (from XmlNode node in doc.SelectNodes("InstalledPackages/item")
select new InstalledPackage
{
PackageId = node.Attributes["id"].InnerText,
Version = node.Attributes["version"].InnerText
}).ToList();
}