forked from couchbase/EnyimMemcached
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatic AssemblyFileVersion and zip file naming based on 'git descr…
…ibe'.
- Loading branch information
Showing
6 changed files
with
73 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Target Name="BeforeBuild" Condition=" $(Configuration) == 'Release' " DependsOnTargets="CreateAssemblyInfo;IncludeGeneratedAssemblyInfo"> | ||
|
||
</Target> | ||
|
||
<PropertyGroup> | ||
<GeneratedAssemblyInfo>obj\$(Configuration)\.assemblyinfo</GeneratedAssemblyInfo> | ||
<GitDescribe>obj\$(Configuration)\.describe</GitDescribe> | ||
<GitTagMatch Condition=" '$(GitTagMatch)' == '' ">*</GitTagMatch> | ||
</PropertyGroup> | ||
|
||
<Target Name="CreateAssemblyInfo"> | ||
|
||
<MakeDir Directories="obj\$(Configuration)" /> | ||
|
||
<Exec Command="git describe --tags --match $(GitTagMatch) > $(GitDescribe)" /> | ||
<ReadLinesFromFile File="$(GitDescribe)"> | ||
<Output TaskParameter="Lines" PropertyName="_AssemblyFileVersion"/> | ||
</ReadLinesFromFile> | ||
|
||
<Delete Files="$(GeneratedAssemblyInfo)" /> | ||
<WriteLinesToFile File="$(GeneratedAssemblyInfo)" Lines="[assembly: System.Reflection.AssemblyFileVersion("$(_AssemblyFileVersion)")]" /> | ||
</Target> | ||
|
||
<Target Name="IncludeGeneratedAssemblyInfo"> | ||
<CreateItem Include="$(GeneratedAssemblyInfo)"> | ||
<Output TaskParameter="Include" ItemName="Compile"/> | ||
</CreateItem> | ||
</Target> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters