Пример #1
0
        private Package[] LoadLocalVspackage()
        {
            if (!File.Exists(vspackages_file))
            {
                vsrepo.Update();
            }

            //Load vspackages.json
            var jsonString = File.ReadAllText(vspackages_file);
            var packages   = Vspackage.FromJson(jsonString);

            //var packages = JsonConvert.DeserializeObject<Vspackage>(jsonString);
            //return (packages.FileFormat, packages.Packages);
            return(packages.Packages);
        }
Пример #2
0
 public static string ToJson(this Vspackage self) => JsonConvert.SerializeObject(self, Converter.Settings);