Skip to content
This repository has been archived by the owner on Mar 20, 2019. It is now read-only.

Commit

Permalink
Fixed build break that appears when the .git directory is not found a…
Browse files Browse the repository at this point in the history
…nd removed warning when building in TeamCity.
  • Loading branch information
AArnott committed Dec 28, 2009
1 parent 9d4fc13 commit 6890ef9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
Binary file modified lib/DotNetOpenAuth.BuildTasks.dll
Binary file not shown.
Binary file modified lib/DotNetOpenAuth.BuildTasks.pdb
Binary file not shown.
8 changes: 7 additions & 1 deletion tools/DotNetOpenAuth.Versioning.targets
Expand Up @@ -18,7 +18,13 @@
<Output TaskParameter="Version" PropertyName="BuildVersion" />
<Output TaskParameter="GitCommitId" PropertyName="AssemblyInformationalVersion" />
</GetBuildVersion>
<Message Text="Building version $(BuildVersion) from commit $(AssemblyInformationalVersion)"/>
<PropertyGroup>
<!-- In TeamCity, the build agent doesn't get the .git directory, but the commit id is available by other means. -->
<AssemblyInformationalVersion Condition=" '$(AssemblyInformationalVersion)' == '' ">$(BUILD_VCS_NUMBER)</AssemblyInformationalVersion>
</PropertyGroup>
<Warning Condition=" '$(AssemblyInformationalVersion)' == '' " Text="Unable to determine the git HEAD commit ID to use for informational version number." />
<Message Condition=" '$(AssemblyInformationalVersion)' != '' " Text="Building version $(BuildVersion) from commit $(AssemblyInformationalVersion)"/>
<Message Condition=" '$(AssemblyInformationalVersion)' == '' " Text="Building version $(BuildVersion)"/>
</Target>

<Target Name="BeforeBuild" DependsOnTargets="GetBuildVersion">
Expand Down

0 comments on commit 6890ef9

Please sign in to comment.