Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions src/BenchmarkDotNet/Running/BenchmarkRunnerClean.cs
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,19 @@ private static Summary Run(BenchmarkRunInfo benchmarkRunInfo,
if (!benchmark.Job.GetToolchain().IsInProcess)
{
logger.WriteLine();
logger.WriteLineError("// BenchmarkDotNet has failed to build the auto-generated boilerplate code.");
logger.WriteLineError($"// It can be found in {buildResult.ArtifactsPaths.BuildArtifactsDirectoryPath}");
logger.WriteLineError("// Please follow the troubleshooting guide: https://benchmarkdotnet.org/articles/guides/troubleshooting.html");
logger.WriteLineError($"// BenchmarkDotNet has failed to build the auto-generated boilerplate code.");

if (config.Options.IsSet(ConfigOptions.KeepBenchmarkFiles))
{
logger.WriteLineError($"// It can be found in {buildResult.ArtifactsPaths.BuildArtifactsDirectoryPath}");
}
else
{
artifactsToCleanup.AddRange(buildResult.ArtifactsToCleanup);
logger.WriteLineError($"// Re-run benchmark with --keepFiles option to confirm auto-generated project files.");
}

logger.WriteLineError($"// Please follow the troubleshooting guide: https://benchmarkdotnet.org/articles/guides/troubleshooting.html");
}

if (config.Options.IsSet(ConfigOptions.StopOnFirstError) || allBuildsHaveFailed)
Expand Down