public static PackageManifest CreatePackageManifest(string platformVersion, string PlatformAssetUrl) { var manifest = new PackageManifest() { PlatformVersion = platformVersion, PlatformAssetUrl = PlatformAssetUrl, Modules = new List <ModuleItem>(), ModuleSources = new List <string>() }; manifest.ModuleSources.Add(_defaultModuleManifest); return(manifest); }
public static void ToFile(PackageManifest manifest, string path = "./vc-package.json") { SerializationTasks.JsonSerializeToFile(manifest, path); }
public static PackageManifest AddModule(PackageManifest manifest, ModuleItem module) { manifest.Modules.Add(module); return(manifest); }
public static PackageManifest UpdatePlatform(PackageManifest manifest, string newVersion) { manifest.PlatformVersion = newVersion; return(manifest); }