forked from picoe/Eto.ExtendedRichTextArea
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDirectory.Build.props
executable file
·55 lines (40 loc) · 2.97 KB
/
Directory.Build.props
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
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
<BasePath>$(MSBuildThisFileDirectory)</BasePath>
<UseLocalEto Condition="$(UseLocalEto) == '' and $(SolutionName) == 'Eto.ExtendedRichTextArea.LocalEto'">True</UseLocalEto>
<LocalEtoPath>$(MSBuildThisFileDirectory)..\Eto\</LocalEtoPath>
<BaseIntermediateOutputPath>$(BasePath)artifacts\obj\$(OS)\$(MSBuildProjectName)\</BaseIntermediateOutputPath>
<BaseOutputPath>$(BasePath)artifacts\bin\$(MSBuildProjectName)\</BaseOutputPath>
<EnableWindowsTargeting>true</EnableWindowsTargeting>
<WarningsNotAsErrors>NETSDK1202</WarningsNotAsErrors>
<CheckEolWorkloads>false</CheckEolWorkloads>
</PropertyGroup>
<PropertyGroup>
<!-- global nuget/assembly properties -->
<DevVersion>1.0.0</DevVersion>
<Version Condition="$(Version) == ''">1.0.0.0</Version>
<Company>Picoe Software Solutions</Company>
<Copyright>(c) 2024 by Curtis Wensley</Copyright>
<InformationalVersion Condition="$(SetVersion) != ''">$(SetVersion)</InformationalVersion>
<!-- set version from tag -->
<InformationalVersion Condition="$(InformationalVersion) == '' AND $(BuildBranch.StartsWith('refs/tags/'))">$(BuildBranch.Substring(10))</InformationalVersion>
<!-- set version for CI build -->
<InformationalVersion Condition="$(InformationalVersion) == '' AND $(BuildVersion) != ''">$(DevVersion)-ci-$([System.DateTime]::Now.ToString('yyyyMMdd')).$(BuildVersion)</InformationalVersion>
<!-- set version for development -->
<InformationalVersion Condition="$(InformationalVersion) == ''">$(DevVersion)-dev</InformationalVersion>
<PackageVersion>$(InformationalVersion)</PackageVersion>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<AssemblyVersionMajorMinor>$([System.Version]::Parse($([System.String]::Copy('$(Version)').Replace('.*', ''))).ToString(2))</AssemblyVersionMajorMinor>
<DaysSince2000>$([System.DateTime]::Today.Subtract($([System.DateTime]::Parse('2000-01-01T00:00:00Z'))).TotalDays.ToString('0'))</DaysSince2000>
<SecondsOfTodayHalved>$([MSBuild]::Divide($([System.DateTime]::Now.Subtract($([System.DateTime]::Today)).TotalSeconds), 2).ToString('0'))</SecondsOfTodayHalved>
<FileVersion>$(AssemblyVersionMajorMinor).$(DaysSince2000).$(SecondsOfTodayHalved)</FileVersion>
<PackageProjectUrl>https://github.com/picoe/Eto.ExtendedRichTextArea</PackageProjectUrl>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>$(PackageProjectUrl).git</RepositoryUrl>
<!-- add git sha to informational version, after package version is set -->
<InformationalVersion Condition="$(GITHUB_SHA) != ''">$(InformationalVersion)+$(GITHUB_SHA)</InformationalVersion>
</PropertyGroup>
<Import Condition="Exists('$(BasePath)..\Eto.ExtendedRichTextArea.props')" Project="$(BasePath)..\Eto.ExtendedRichTextArea.props" />
</Project>