PlistAliases.

DeserializePlist(ICakeContext, FilePath) Method

Summary

Deserializes a plist from file
Assembly
Cake.Plist.dll
Namespace
Cake.Plist
Containing Type
PlistAliases

Syntax

public static dynamic DeserializePlist(this ICakeContext context, FilePath path)

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 xml plist file

Return Value

Type Description
dynamic deserialized plist as dynamic