Skip to content

Commit

Permalink
Post-build event updated for different configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
dmedv committed Sep 10, 2014
1 parent 825857d commit 0c53e31
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion SkyServer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6258,7 +6258,11 @@
</VisualStudio>
</ProjectExtensions>
<PropertyGroup>
<PostBuildEvent>git describe --all --long &gt; $(SolutionDir)\version.txt</PostBuildEvent>
<PostBuildEvent>if "$(ConfigurationName)" == "Release" (
git describe &gt; $(SolutionDir)\version.txt
) else (
git describe --all --long &gt; $(SolutionDir)\version.txt
)</PostBuildEvent>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand Down

0 comments on commit 0c53e31

Please sign in to comment.