Repository navigation
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
57 lines (51 loc) · 3.97 KB
/
Copy pathDirectory.Build.props
File metadata and controls
57 lines (51 loc) · 3.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<Project>
<PropertyGroup Condition="'$(LiteDBPreDev)' == 'true'">
<DefineConstants>$(DefineConstants);LITEDB_PREDEV</DefineConstants>
</PropertyGroup>
<PropertyGroup>
<_RootGitDirectory>$([System.IO.Path]::Combine('$(MSBuildThisFileDirectory)', '.git'))</_RootGitDirectory>
<_RootGitHeadPath>$([System.IO.Path]::Combine('$(_RootGitDirectory)', 'HEAD'))</_RootGitHeadPath>
<_RootGitShallowPath>$([System.IO.Path]::Combine('$(_RootGitDirectory)', 'shallow'))</_RootGitShallowPath>
<GitVersionEnabled Condition="'$(GitVersionEnabled)' == '' and Exists('$(_RootGitHeadPath)') and !Exists('$(_RootGitShallowPath)')">true</GitVersionEnabled>
<GitVersionEnabled Condition="'$(GitVersionEnabled)' == ''">false</GitVersionEnabled>
<_LiteDBPreDevVersionTarget Condition="'$(GitVersionEnabled)' == 'true'">GetVersion</_LiteDBPreDevVersionTarget>
</PropertyGroup>
<Target Name="EnableLiteDBPreDevFromGitVersion"
BeforeTargets="CoreCompile"
DependsOnTargets="$(_LiteDBPreDevVersionTarget)"
Condition="'$(GitVersionEnabled)' == 'true' and '$(LiteDBPreDev)' == ''">
<PropertyGroup Condition="'$(GitVersion_PreReleaseLabel)' == 'prerelease'">
<LiteDBPreDev>true</LiteDBPreDev>
<DefineConstants>$(DefineConstants);LITEDB_PREDEV</DefineConstants>
</PropertyGroup>
</Target>
<PropertyGroup Condition="'$(GitVersionEnabled)' == 'true'">
<GitVersion_NoFetch Condition="'$(GitVersion_NoFetch)' == ''">true</GitVersion_NoFetch>
<GitVersion_UpdateAssemblyInfo>false</GitVersion_UpdateAssemblyInfo>
<!-- Inner framework builds run concurrently. Sharing obj/gitversion.json
lets one task read the file while another task truncates and rewrites it. -->
<_GitVersionIntermediatePath>$(BaseIntermediateOutputPath)</_GitVersionIntermediatePath>
<_GitVersionIntermediatePath Condition="'$(_GitVersionIntermediatePath)' == ''">obj/</_GitVersionIntermediatePath>
<GitVersionOutputFile Condition="'$(GitVersionOutputFile)' == ''">$(_GitVersionIntermediatePath)gitversion.$(Configuration).$(TargetFramework).$(TestingEnabled).json</GitVersionOutputFile>
</PropertyGroup>
<PropertyGroup Condition="'$(GitVersionEnabled)' == 'true'">
<_GitVersionPreReleaseNumberPadded Condition="'$(GitVersion_PreReleaseNumber)' != ''">$([System.String]::Format("{0:0000}", $(GitVersion_PreReleaseNumber)))</_GitVersionPreReleaseNumberPadded>
<_GitVersionCalculatedSemVer Condition="'$(GitVersion_PreReleaseLabel)' != ''">$(GitVersion_MajorMinorPatch)-$(GitVersion_PreReleaseLabel).$(_GitVersionPreReleaseNumberPadded)</_GitVersionCalculatedSemVer>
<_GitVersionCalculatedSemVer Condition="'$(GitVersion_PreReleaseLabel)' == ''">$(GitVersion_MajorMinorPatch)</_GitVersionCalculatedSemVer>
<Version Condition="'$(GitVersion_Major)' != ''">$(_GitVersionCalculatedSemVer)</Version>
<PackageVersion Condition="'$(GitVersion_Major)' != ''">$(_GitVersionCalculatedSemVer)</PackageVersion>
<AssemblyVersion Condition="'$(GitVersion_AssemblySemVer)' != ''">$(GitVersion_AssemblySemVer)</AssemblyVersion>
<FileVersion Condition="'$(GitVersion_AssemblySemFileVer)' != ''">$(GitVersion_AssemblySemFileVer)</FileVersion>
<InformationalVersion Condition="'$(GitVersion_Major)' != ''">$(_GitVersionCalculatedSemVer)+$(GitVersion_ShortSha)</InformationalVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(GitVersionEnabled)' != 'true'">
<Version Condition="'$(Version)' == ''">0.0.0-detached</Version>
<PackageVersion Condition="'$(PackageVersion)' == ''">0.0.0-detached</PackageVersion>
<AssemblyVersion Condition="'$(AssemblyVersion)' == ''">0.0.0.0</AssemblyVersion>
<FileVersion Condition="'$(FileVersion)' == ''">0.0.0.0</FileVersion>
<InformationalVersion Condition="'$(InformationalVersion)' == ''">0.0.0-detached</InformationalVersion>
</PropertyGroup>
<ItemGroup Condition="'$(GitVersionEnabled)' == 'true'">
<PackageReference Include="GitVersion.MsBuild" Version="6.4.0" PrivateAssets="all" />
</ItemGroup>
</Project>