public BenchmarkBuildResult Build(BenchmarkGenerateResult generateResult)
 {
     var projectFileName = Path.Combine(generateResult.DirectoryPath, BenchmarkClassicGenerator.MainClassName + ".csproj");
     var consoleLogger = new MSBuildConsoleLogger(logger);
     var globalProperties = new Dictionary<string, string>();
     var buildRequest = new BuildRequestData(projectFileName, globalProperties, null, new[] { "Build" }, null);
     var buildParameters = new BuildParameters(new ProjectCollection()) { DetailedSummary = false, Loggers = new ILogger[] { consoleLogger } };
     var buildResult = BuildManager.DefaultBuildManager.Build(buildParameters, buildRequest);
     return new BenchmarkBuildResult(generateResult, buildResult.OverallResult == BuildResultCode.Success, buildResult.Exception);
 }
 public BenchmarkBuildResult Build(BenchmarkGenerateResult generateResult)
 {
     return builder.Build(generateResult);
 }
 public BenchmarkBuildResult(BenchmarkGenerateResult generateResult, bool isBuildSuccess, Exception buildException)
     : base(generateResult.DirectoryPath, generateResult.IsGenerateSuccess, generateResult.GenerateException)
 {
     IsBuildSuccess = isBuildSuccess;
     BuildException = buildException;
 }
 private BenchmarkBuildResult Build(IBenchmarkToolchainFacade toolchain, BenchmarkGenerateResult generateResult)
 {
     Logger.WriteLineInfo("// *** Build ***");
     var buildResult = toolchain.Build(generateResult);
     if (buildResult.IsBuildSuccess)
     {
         Logger.WriteLineInfo("// Result = Success");
     }
     else
     {
         Logger.WriteLineError("// Result = Failure");
         if (buildResult.BuildException != null)
             Logger.WriteLineError($"// Exception: {buildResult.BuildException.Message}");
     }
     Logger.NewLine();
     return buildResult;
 }