forked from EveHQ-Team/EveHQ
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVersionNumber.targets
33 lines (24 loc) · 1.43 KB
/
VersionNumber.targets
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
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'">
<IsReleaseBuild>true</IsReleaseBuild>
</PropertyGroup>
<PropertyGroup>
<VersionPreRelease>Beta-$(ChangeId)</VersionPreRelease>
<SemanticVersionText>2.15.0</SemanticVersionText>
</PropertyGroup>
<PropertyGroup Condition="'$(IsReleaseBuild)' == 'true' or '$(IsReleaseBuild)' == 'True' or '$(IsReleaseBuild)' == 'TRUE' or '$(IsReleaseBuild)' == '1'">
<VersionPreRelease></VersionPreRelease>
</PropertyGroup>
<!-- Copies output artifacts to central folder for pickup by installer-->
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'">
<PreBuildEvent>IF NOT EXIST "$(SolutionDir)BuildOutput\Release\" mkdir "$(SolutionDir)BuildOutput\Release\"</PreBuildEvent>
<PostBuildEvent>copy /Y "$(TargetDir)*.*" "$(SolutionDir)BuildOutput\Release\"</PostBuildEvent>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
<PreBuildEvent>IF NOT EXIST "$(SolutionDir)BuildOutput\Debug\" mkdir "$(SolutionDir)BuildOutput\Debug\"</PreBuildEvent>
<PostBuildEvent>copy /Y "$(TargetDir)*.*" "$(SolutionDir)BuildOutput\Debug\"</PostBuildEvent>
</PropertyGroup>
<Target Name="BuildInstaller">
<Exec Condition="'$(BuildInstaller)' == 'true'" Command="SET EVEHQVERSION=$(VersionTxt)"/>
</Target>
</Project>