public static void RegisterPackage(string name, string location) { StandardConfigurationFile standardConfigurationFile = new StandardConfigurationFile("./Packages.index"); standardConfigurationFile.UpdateValue(name, 0, location); //standardConfigurationFile.ove //(name,location) }
public static InstalledPackage FindInstalledPackage(string name) { StandardConfigurationFile standardConfigurationFile = new StandardConfigurationFile("./Packages.index"); var nameMatched = standardConfigurationFile.GetValues(name); if (nameMatched[0] == "") { throw new Exception("No such a package."); } else { return(new InstalledPackage(nameMatched[0])); } }
public InstalledPackage(string location) { Manifest = new StandardConfigurationFile(Path.Combine(location, "Package.UAPManifest")); }