-
-
Notifications
You must be signed in to change notification settings - Fork 55
/
Build.proj
86 lines (67 loc) · 3.38 KB
/
Build.proj
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="15.0">
<PropertyGroup>
<LangVersion>C# 10.0</LangVersion>
</PropertyGroup>
<PropertyGroup>
<MSBuildCommunityTasksPath>$(MSBuildProjectDirectory)\.build</MSBuildCommunityTasksPath>
</PropertyGroup>
<Import Project="$(MSBuildCommunityTasksPath)\MSBuild.Community.Tasks.targets"/>
<!-- Version Number -->
<PropertyGroup Condition=" '$(BUILD_NUMBER)' == '' ">
<Version>03.08.01</Version>
<FileVersion>01.00.00</FileVersion>
<InformationalVersion>01.00.00</InformationalVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(BUILD_NUMBER)' != '' ">
<!-- Build Server Number -->
<Version>03.08.01</Version>
<FileVersion>$(BUILD_NUMBER)</FileVersion>
<InformationalVersion>$(BUILD_NUMBER)</InformationalVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(BuildConfiguration)' == '' ">
<BuildConfiguration>Release</BuildConfiguration>
</PropertyGroup>
<PropertyGroup Condition=" '$(BuildPlatform)' == '' ">
<BuildPlatform>Any CPU</BuildPlatform>
</PropertyGroup>
<Target Name="Clean">
<Message Importance="High" Text="======================================= Starting Target Clean ==========================================" />
<DeleteTree Directories="**\obj\**;**\bin\**" />
</Target>
<Target Name="Version">
<Message Importance="High" Text="======================================= Starting Target Version ==========================================" />
<Time>
<Output TaskParameter="Year" PropertyName="Year" />
</Time>
<Message Text="Version: $(Version)"/>
<Attrib Files="$(MSBuildProjectDirectory)\GlobalAssemblyInfo.cs" ReadOnly="False" />
<AssemblyInfo CodeLanguage="CS"
OutputFile="$(MSBuildProjectDirectory)\GlobalAssemblyInfo.cs"
GenerateClass="true"
AssemblyCopyright="Copyright © $(Year). All rights reserved."
AssemblyConfiguration="$(BuildConfiguration)"
AssemblyVersion="$(Version)"
AssemblyFileVersion="$(FileVersion)"
AssemblyInformationalVersion="$(InformationalVersion)" />
</Target>
<Target Name="Compile" DependsOnTargets="Clean;Version">
<Message Importance="High" Text="======================================= Starting Target Compile ==========================================" />
<ItemGroup>
<ProjectFiles Include="$(MSBuildProjectDirectory)\Hotcakes.sln" />
</ItemGroup>
<MSBuild Projects="@(ProjectFiles)" Properties="Configuration=$(BuildConfiguration);Platform=$(BuildPlatform);RootFolder=$(MSBuildProjectDirectory)" />
</Target>
<Target Name="BuildModule" DependsOnTargets="Compile">
<Message Importance="High" Text="======================================= Starting Target BuildModule ==========================================" />
<!-- Code placeholder if we package module separately -->
</Target>
<Target Name="Build">
<Message Importance="High" Text="======================================= Starting Target Build ==========================================" />
<CallTarget Targets="BuildModule" />
<MSBuild Projects="DevSamples\Build.proj" Properties="RootFolder=$(MSBuildProjectDirectory);Version=$(Version)" />
<MSBuild Projects="WebDeploy\Build.proj" Properties="RootFolder=$(MSBuildProjectDirectory);Version=$(Version)" />
<!-- For Testing commented removing of _Build-->
<RemoveDir Directories="_Build" />
</Target>
</Project>