public void Read(string pathToSourceFile) { try { _packageSource = new PackageSource(pathToSourceFile, new Dictionary<string, string>()); } catch (Exception exception) { MessageBox.Show(exception.ToString()); } }
public void Read(string pathToSourceFile) { _packageSource = new PackageSource(); _packageSource.SourceFile =pathToSourceFile; try { _packageSource.LoadPackageSourceData(_packageSource.SourceFile, "#"); PropertyRule a= _packageSource.AllRoles.GetRulesByName("faux-pax").GetProperty("downloads"); Console.WriteLine(a); } catch (Exception exception) { MessageBox.Show(exception.ToString()); } }