PlistAliases.

SerializePlist(ICakeContext, FilePath, object) Method

Summary

Serializes a plist into spezified file.
Assembly
Cake.Plist.dll
Namespace
Cake.Plist
Containing Type
PlistAliases

Syntax

public static void SerializePlist(this ICakeContext context, FilePath path, object value)

Examples

 var plist = File("./src/Demo/Info.plist");
 dynamic data = DeserializePlist(plist);

 data["CFBundleShortVersionString"] = version.AssemblySemVer;
 data["CFBundleVersion"] = version.FullSemVer;

 SerializePlist(plist, data);
Deserialize the plist and simply access properties via indexer. But, it is important to declare data as dynamic.

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext
path FilePath target file
value object plist data

Return Value

Type Description
void