Skip to content
Merged
Show file tree
Hide file tree
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
10 changes: 10 additions & 0 deletions src/BenchmarkDotNet/Templates/MonoAOTLLVMCsProj.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk" DefaultTarget="Publish">
<PropertyGroup>
<OriginalCSProjPath>$CSPROJPATH$</OriginalCSProjPath>
<MonoPropsPath>$([System.IO.Path]::ChangeExtension('$(OriginalCSProjPath)', '.Mono.props'))</MonoPropsPath>
<MonoTargetsPath>$([System.IO.Path]::ChangeExtension('$(OriginalCSProjPath)', '.Mono.targets'))</MonoTargetsPath>
</PropertyGroup>

<Import Project="$(MonoPropsPath)" Condition="Exists($(MonoPropsPath))" />

<PropertyGroup>
<OutputType>Exe</OutputType>
<OutputPath>bin</OutputPath>
Expand All @@ -11,6 +19,7 @@
<ValidateExecutableReferencesMatchSelfContained>false</ValidateExecutableReferencesMatchSelfContained>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<StartupObject>BenchmarkDotNet.Autogenerated.UniqueProgramName</StartupObject>
<SelfContained>true</SelfContained>
</PropertyGroup>

<ItemGroup>
Expand Down Expand Up @@ -75,4 +84,5 @@

</Target>

<Import Project="$(MonoTargetsPath)" Condition="Exists($(MonoTargetsPath))" />
</Project>
3 changes: 3 additions & 0 deletions src/BenchmarkDotNet/Toolchains/DotNetCli/DotNetCliCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ public BuildResult RestoreThenBuild()
buildResult = BuildNoRestoreNoDependencies();
}

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

return buildResult.ToBuildResult(GenerateResult);
}

Expand Down