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"
- Assembly
- Cake
.Issues .MsBuild .dll - Namespace
- Cake
.Issues .MsBuild - Containing Type
- MsBuildIssuesAliases
Syntax
public static BaseMsBuildLogFileFormat MsBuildXmlFileLoggerFormat(this ICakeContext context)
Attributes
Type | Description |
---|---|
Cake |
|
Cake |
Parameters
Name | Type | Description |
---|---|---|
context | ICakeContext | The context. |
Return Value
Type | Description |
---|---|
Base |
Instance for the MsBuild log format. |