-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathDirectory.Build.props
42 lines (30 loc) · 2.09 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
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="$(BuildTarget) == ''">
<BuildTarget Condition="$([MSBuild]::IsOSPlatform(Windows))">Windows</BuildTarget>
<BuildTarget Condition="$([MSBuild]::IsOSPlatform(OSX))">Mac</BuildTarget>
<BuildTarget Condition="$([MSBuild]::IsOSPlatform(Linux))">Linux</BuildTarget>
</PropertyGroup>
<PropertyGroup>
<Company>Picoe Software Solutions</Company>
<Copyright>(c) 2006-2023 by Curtis Wensley aka Eto</Copyright>
<DevVersion>3.3.12</DevVersion>
<!-- set version from tag -->
<Version Condition="$(Version) == '' AND $(BuildBranch.StartsWith('refs/tags/'))">$(BuildBranch.Substring(10))</Version>
<!-- set version for CI build -->
<Version Condition="$(Version) == '' AND $(BuildVersion) != ''">$(DevVersion)-ci-$([System.DateTime]::Now.ToString('yyyyMMdd')).$(BuildVersion)</Version>
<!-- set version for development -->
<Version Condition="$(Version) == ''">$(DevVersion)-dev</Version>
<BasePath>$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)..\'))</BasePath>
<ArtifactsDir>$(BasePath)artifacts\</ArtifactsDir>
<!-- <DebugType>embedded</DebugType> -->
<!-- <DebugType>portable</DebugType> -->
<NoWarn>NU1701</NoWarn>
<BaseIntermediateOutputPath Condition="$(BaseIntermediateOutputPath) == ''">$(ArtifactsDir)obj\$(BuildTarget)\$(MSBuildProjectName)\</BaseIntermediateOutputPath>
<BaseOutputPath Condition="$(BaseOutputPath) == ''">$(ArtifactsDir)bin\$(MSBuildProjectName)\</BaseOutputPath>
<PackageOutputPath Condition="$(PackageOutputPath) == ''">$(ArtifactsDir)nuget\$(Configuration)\</PackageOutputPath>
<RestoreProjectStyle Condition="'$(RestoreProjectStyle)' == ''">PackageReference</RestoreProjectStyle>
<PublishDir Condition="$(PublishDir) == ''">$(ArtifactsDir)publish\$(Configuration)\$(BuildTarget)\</PublishDir>
<!-- Uncomment to use Eto from source -->
<!-- <EtoBasePath>..\..\..\Eto\</EtoBasePath> -->
</PropertyGroup>
</Project>