Skip to content

Commit

Permalink
using csproj to tell msbuild where to put output so appveyor custom s…
Browse files Browse the repository at this point in the history
…ettings does not overwrite it
  • Loading branch information
adamsitnik committed Feb 24, 2017
1 parent 5c19147 commit 3229987
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/BenchmarkDotNet.Core/Templates/CsProj.txt
Expand Up @@ -6,6 +6,7 @@
<PlatformTarget>$PLATFORM$</PlatformTarget>
<AssemblyName>$PROGRAMNAME$</AssemblyName>
<OutputType>Exe</OutputType>
<OutputPath>bin\Release</OutputPath>
$RUNTIMEID$
</PropertyGroup>

Expand Down
Expand Up @@ -42,7 +42,7 @@ public BuildResult Build(GenerateResult generateResult, ILogger logger, Benchmar

var buildResult = Build(generateResult);

logger.WriteLineInfo($"dotnet build took {restoreResult.ExecutionTime.TotalSeconds}s");
logger.WriteLineInfo($"dotnet build took {buildResult.ExecutionTime.TotalSeconds}s");

if (!buildResult.IsSuccess)
{
Expand Down
Expand Up @@ -21,7 +21,7 @@ public ExecuteResult Execute(BuildResult buildResult, Benchmark benchmark, ILogg
var executableName = $"{buildResult.ArtifactsPaths.ProgramName}.dll";
if (!File.Exists(Path.Combine(buildResult.ArtifactsPaths.BinariesDirectoryPath, executableName)))
{
logger.WriteError($"Did not find {executableName} in {buildResult.ArtifactsPaths.BinariesDirectoryPath}, but the folder contained:");
logger.WriteLineError($"Did not find {executableName} in {buildResult.ArtifactsPaths.BinariesDirectoryPath}, but the folder contained:");
foreach (var file in new DirectoryInfo(buildResult.ArtifactsPaths.BinariesDirectoryPath).GetFiles("*.*"))
logger.WriteLineError(file.Name);

Expand Down

0 comments on commit 3229987

Please sign in to comment.