Repository navigation
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
33 lines (29 loc) · 2.03 KB
/
Copy pathDirectory.Build.props
File metadata and controls
33 lines (29 loc) · 2.03 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
<Project>
<PropertyGroup>
<!-- Builds restore this exact public NuGet.org Framework release by default. -->
<UseSphere10FrameworkSource Condition="'$(UseSphere10FrameworkSource)' == ''">false</UseSphere10FrameworkSource>
<Sphere10FrameworkVersion Condition="'$(Sphere10FrameworkVersion)' == ''">3.2.0</Sphere10FrameworkVersion>
<!-- -p:UseSphere10FrameworkSource=true builds against a clean Framework checkout instead. -->
<Sphere10FrameworkRoot Condition="'$(Sphere10FrameworkRoot)' == ''">$(MSBuildThisFileDirectory)../Framework</Sphere10FrameworkRoot>
</PropertyGroup>
<!-- The vendored Notion.Client keeps its upstream version and package identity. -->
<PropertyGroup>
<IsLocalNotionProduct Condition="'$(MSBuildProjectName)' == 'LocalNotion.CLI' Or '$(MSBuildProjectName)' == 'LocalNotion.Core'">true</IsLocalNotionProduct>
</PropertyGroup>
<PropertyGroup Condition="'$(IsLocalNotionProduct)' == 'true'">
<!-- Capture before Version.props defaults an omitted BuildNumber to 0. -->
<_LocalNotionExplicitBuildNumber>$(BuildNumber)</_LocalNotionExplicitBuildNumber>
<_LocalNotionBuildCounterFile>$(MSBuildThisFileDirectory)LOCAL-BUILD-NUMBER</_LocalNotionBuildCounterFile>
</PropertyGroup>
<Import Project="Version.props" Condition="'$(IsLocalNotionProduct)' == 'true'" />
<PropertyGroup Condition="'$(IsLocalNotionProduct)' == 'true'">
<Version>$(ReleaseVersion)</Version>
<PackageVersion>$(ReleaseVersion)</PackageVersion>
<_LocalNotionVersionPrefix>$([System.Text.RegularExpressions.Regex]::Match('$(ReleaseVersion)', '^[0-9]+\.[0-9]+\.[0-9]+').Value)</_LocalNotionVersionPrefix>
<AssemblyVersion>$(_LocalNotionVersionPrefix).$(BuildNumber)</AssemblyVersion>
<FileVersion>$(AssemblyVersion)</FileVersion>
<InformationalVersion>$(FileVersion)</InformationalVersion>
<!-- Keep git SHA out of CLI version output; commit is recorded separately in release metadata. -->
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
</PropertyGroup>
</Project>