Skip to content
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.

Commit

Permalink
Run uname before CoreCompile target.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cesar Blum Silveira committed Jan 26, 2017
1 parent b2d99b7 commit eac699a
Showing 1 changed file with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,14 @@
<PackageReference Include="System.Runtime.Serialization.Primitives" Version="4.4.0-*" />
</ItemGroup>

<PropertyGroup>
<Uname></Uname>
</PropertyGroup>

<Target Condition="'$(OS)' == 'Unix'" Name="RunUname" BeforeTargets="Build">
<Target Condition="'$(OS)' == 'Unix'" Name="RunUname" BeforeTargets="CoreCompile">
<Exec Command="uname" ConsoleToMSBuild="true">
<Output TaskParameter="ConsoleOutput" PropertyName="Uname" />
</Exec>
</Target>

<PropertyGroup Condition="'$(Uname)' == 'Darwin'">
<DefineConstants>$(DefineConstants);DARWIN</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Uname)' == 'Darwin'">
<DefineConstants>$(DefineConstants);DARWIN</DefineConstants>
</PropertyGroup>
</Target>

</Project>

0 comments on commit eac699a

Please sign in to comment.