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); }
public static string ToJson(this Vspackage self) => JsonConvert.SerializeObject(self, Converter.Settings);