MsBuildIssuesAliases.

MsBuildXmlFileLoggerFormat(ICakeContext) Method

Summary

Gets an instance for the MsBuild log format as written by the XmlFileLogger class from MSBuild Extension Pack.

You can add the logger to the MSBuildSettings like this:

var settings = new MSBuildSettings()
    .WithLogger(
        Context.Tools.Resolve("MSBuild.ExtensionPack.Loggers.dll").FullPath,
        "XmlFileLogger",
        string.Format(
            "logfile=\"{0}\";verbosity=Detailed;encoding=UTF-8",
            @"c:\build\msbuild.log")
    );

In order to use the above logger, include the following in your build.cake file to download and install from NuGet.org:

#tool "nuget:?package=MSBuild.Extension.Pack"

Syntax

public static BaseMsBuildLogFileFormat MsBuildXmlFileLoggerFormat(this ICakeContext context)

Attributes

Type Description
CakePropertyAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The context.

Return Value

Type Description
BaseMsBuildLogFileFormat Instance for the MsBuild log format.