Cake.Yaml

A set of aliases to help with YAML Serialization

#addin nuget:?package=Cake.Yaml&version=6.0.0

dotnet add package Cake.Yaml --version 6.0.0

<PackageReference Include="Cake.Yaml" Version="6.0.0" />

Aliases

YAML related cake aliases.

In order to use aliases from this addin, you will need to also reference YamlDotNet as an addin. Here is what including Cake.Yaml in your script should look like:

#addin nuget:?package=Cake.Yaml&version=x.y.z
#addin nuget:?package=YamlDotNet&version=11.2.1

General

DeserializeYaml<T>(string, DeserializeYamlSettings) Deserializes the YAML from a string.
DeserializeYaml<T>(string) Deserializes the YAML from a string.
DeserializeYamlFromFile<T>(FilePath, DeserializeYamlSettings) Deserializes the YAML from a file.
DeserializeYamlFromFile<T>(FilePath) Deserializes the YAML from a file.
SerializeYaml<T>(T, SerializeYamlSettings) Serializes an object to a YAML string.
SerializeYaml<T>(T) Serializes an object to a YAML string.
SerializeYamlToFile<T>(FilePath, T, SerializeYamlSettings) Serializes an object to a YAML file.
SerializeYamlToFile<T>(FilePath, T) Serializes an object to a YAML file.