Skip to content

Commit

Permalink
if we fail to do the full build, we try with --no-dependencies (for t…
Browse files Browse the repository at this point in the history
…he publishing toolchains like CoreRT)
  • Loading branch information
adamsitnik committed Jan 22, 2019
1 parent 6ccf453 commit ef090df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/BenchmarkDotNet/Toolchains/DotNetCli/DotNetCliCommand.cs
Expand Up @@ -80,6 +80,9 @@ public BuildResult RestoreThenBuildThenPublish()

var buildResult = BuildNoRestore();

if (!buildResult.IsSuccess) // if we fail to do the full build, we try with --no-dependencies
buildResult = BuildNoRestoreNoDependencies();

if (!buildResult.IsSuccess)
return BuildResult.Failure(GenerateResult, buildResult.AllInformation);

Expand Down

0 comments on commit ef090df

Please sign in to comment.