Exemple #1
0
        private Package[] LoadLocalAvspackage()
        {
            if (!File.Exists(avspackages_file))
            {
                avsrepo.Update();
            }

            //Load vspackages.json
            var jsonString = File.ReadAllText(avspackages_file);
            var packages   = AvsPackage.FromJson(jsonString);

            //var packages = JsonConvert.DeserializeObject<Vspackage>(jsonString);
            //return (packages.FileFormat, packages.Packages);
            return(packages.Packages);
        }
 public static string ToJson(this AvsPackage self) => JsonConvert.SerializeObject(self, Converter.Settings);