Exemple #1
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]));
            }
        }