Skip to content

Commit 975cfa7

Browse files
authored
Fix MsBuild issue provider example (#954)
1 parent d54d684 commit 975cfa7

File tree

1 file changed

+3
-3
lines changed
  • docs/input/documentation/issue-providers/msbuild

1 file changed

+3
-3
lines changed

docs/input/documentation/issue-providers/msbuild/examples.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ and a task to read issues from the binary log file and write the number of warni
3939
=== "Cake .NET Tool"
4040

4141
```csharp title="build.cake"
42-
var logPath = @"c:\build\msbuild.xml";
42+
var logPath = @"c:\build\msbuild.binlog";
4343
var repoRootPath = MakeAbsolute(Directory("./"));
4444

4545
Task("Build-Solution").Does(() =>
@@ -94,7 +94,7 @@ and a task to read issues from the binary log file and write the number of warni
9494

9595
public class BuildContext(ICakeContext context) : FrostingContext(context)
9696
{
97-
public FilePath LogPath { get; } = @"c:\build\msbuild.xml";
97+
public FilePath LogPath { get; } = @"c:\build\msbuild.binlog";
9898
public DirectoryPath RepoRootPath { get; } =
9999
context.MakeAbsolute(context.Directory("./"));
100100
}
@@ -107,7 +107,7 @@ and a task to read issues from the binary log file and write the number of warni
107107
// Build solution.
108108
var msBuildSettings =
109109
new DotNetMSBuildSettings().WithLogger(
110-
"BinaryLogger," + context.Tools.Resolve("Cake.Issues.MsBuild*/**/StructuredLogger.dll"),
110+
"BinaryLogger," + context.Environment.ApplicationRoot.CombineWithFilePath("StructuredLogger.dll"),
111111
"",
112112
context.LogPath.FullPath);
113113
context.DotNetBuild(

0 commit comments

Comments
 (0)