forked from CosmosOS/XSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Directory.Build.props
39 lines (31 loc) · 1.43 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
<Project>
<PropertyGroup>
<RepoRoot>$(MSBuildThisFileDirectory)</RepoRoot>
<CommonRepoRoot>$(RepoRoot)..\Common\</CommonRepoRoot>
</PropertyGroup>
<PropertyGroup>
<LangVersion>Latest</LangVersion>
<NoWarn>CS1572;CS1573;CS1574;CS1591;$(NoWarn)</NoWarn>
</PropertyGroup>
<PropertyGroup>
<!--
This property sets the suffix for local builds.
For example, if the value of this property is '100', the version will be x.y.z-localbuild100.
The property is empty by default as it's not really easy to generate a unique number per local build.
-->
<VersionLocalBuildSuffix></VersionLocalBuildSuffix>
</PropertyGroup>
<PropertyGroup>
<VersionPrefix Condition="'$(VersionPrefix)' == ''">0.1.0</VersionPrefix>
<VersionSuffix Condition="'$(APPVEYOR)' == 'True'">build$(APPVEYOR_BUILD_NUMBER)+$(APPVEYOR_REPO_COMMIT.Substring(0, 7))</VersionSuffix>
<VersionSuffix Condition="'$(APPVEYOR_REPO_TAG)' == 'True'"></VersionSuffix>
<VersionSuffix Condition="'$(CI)' == ''">localbuild$(VersionLocalBuildSuffix)</VersionSuffix>
</PropertyGroup>
<PropertyGroup>
<CommonVersion>0.1.0-build37</CommonVersion>
</PropertyGroup>
<PropertyGroup>
<DeployExtension Condition="'$(CI)' == 'True'">False</DeployExtension>
</PropertyGroup>
<Import Project="build\Targets\Import.props" />
</Project>