Exemple #1
0
        public static void RegisterPackage(string name, string location)
        {
            StandardConfigurationFile standardConfigurationFile = new StandardConfigurationFile("./Packages.index");

            standardConfigurationFile.UpdateValue(name, 0, location);
            //standardConfigurationFile.ove
            //(name,location)
        }
Exemple #2
0
        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]));
            }
        }
Exemple #3
0
 public InstalledPackage(string location)
 {
     Manifest = new StandardConfigurationFile(Path.Combine(location, "Package.UAPManifest"));
 }