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