Initial commit clean history
This commit is contained in:
commit
c963c4d9e9
19 changed files with 2096 additions and 0 deletions
20
Directory.Build.props
Normal file
20
Directory.Build.props
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<Project>
|
||||
<PropertyGroup>
|
||||
<!-- Version aus Git-Tag lesen: git tag v1.2.3 → Version 1.2.3 -->
|
||||
<GitVersion Condition="'$(GitVersion)' == ''">$([System.String]::Copy('1.0.0'))</GitVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<Target Name="SetVersionFromGit" BeforeTargets="GetAssemblyVersion;Build;Publish">
|
||||
<Exec Command="git describe --tags --abbrev=0 2>nul" ConsoleToMSBuild="true" IgnoreExitCode="true">
|
||||
<Output TaskParameter="ConsoleOutput" PropertyName="GitTagRaw" />
|
||||
</Exec>
|
||||
<PropertyGroup>
|
||||
<!-- v1.2.3 → 1.2.3 -->
|
||||
<GitTagClean>$(GitTagRaw.TrimStart('v').Trim())</GitTagClean>
|
||||
<Version Condition="'$(GitTagClean)' != ''">$(GitTagClean)</Version>
|
||||
<AssemblyVersion Condition="'$(GitTagClean)' != ''">$(GitTagClean).0</AssemblyVersion>
|
||||
<FileVersion Condition="'$(GitTagClean)' != ''">$(GitTagClean).0</FileVersion>
|
||||
</PropertyGroup>
|
||||
<Message Text="Build-Version: $(Version)" Importance="high" />
|
||||
</Target>
|
||||
</Project>
|
||||
Loading…
Add table
Add a link
Reference in a new issue