Summary
Parses Xml documentation example code from given path.
Syntax
[CakeMethodAlias]
public static IEnumerable<XmlDocExampleCode> ParseXmlDocExampleCode(this ICakeContext context, FilePath xmlFilePath)
Examples
var exampleCodes = ParseXmlDocExampleCode("./Cake.Common.xml");
foreach(var exampleCode in exampleCodes)
{
Information(
"{0}\r\n{1}",
exampleCode.Name,
exampleCode.Code
);
}
Attributes
Parameters
Name |
Type |
Description |
context |
ICakeContext |
The context. |
xmlFilePath |
FilePath |
The Path to the file to parse. |
Return Value