-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathPTPSync.buildproj
110 lines (93 loc) · 4.89 KB
/
PTPSync.buildproj
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<?xml version="1.0" encoding="utf-8"?>
<!--
*******************************************************************************************************
** PTPSync.buildproj - Gbtc
**
** Copyright © 2011, Grid Protection Alliance. All Rights Reserved.
**
** Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements. See
** the NOTICE file distributed with this work for additional information regarding copyright ownership.
** The GPA licenses this file to you under the Eclipse Public License -v 1.0 (the "License"); you may
** not use this file except in compliance with the License. You may obtain a copy of the License at:
**
** http://www.opensource.org/licenses/eclipse-1.0.php
**
** Unless agreed to in writing, the subject software distributed under the License is distributed on an
** "AS-IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. Refer to the
** License for the specific language governing permissions and limitations.
**
** Code Modification History:
** ===================================================================================================
** 05/26/2011 - J. Ritchie Carroll
** Created PTPSync build script based on openPDC build script.
**
*******************************************************************************************************
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="MasterBuild.buildproj"/>
<Target Name="BeforePrepareSettings">
<PropertyGroup>
<!-- Must-override settings. -->
<ProjectName>PTPSync</ProjectName>
<ProjectSolution>$(LocalFolder)\Source\$(ProjectName).sln</ProjectSolution>
<VersionMajorChange>None</VersionMajorChange>
<VersionMinorChange>None</VersionMinorChange>
<VersionBuildChange>Increment</VersionBuildChange>
<VersionRevisionChange>Reset</VersionRevisionChange>
<!-- Override default settings. -->
<GitServer Condition="'$(GitServer)' == ''">[email protected]:GridProtectionAlliance/projectalpha.git</GitServer>
<BuildFlavor Condition="'$(BuildFlavor)' == ''">Deploy</BuildFlavor>
<BuildOutputFolder Condition="'$(BuildOutputFolder)' == ''">$(LocalFolder)\Build\Output\Release</BuildOutputFolder>
</PropertyGroup>
</Target>
<Target Name="BeforeVersionSource">
<ItemGroup>
<!-- List of files to be versioned. -->
<FilesToVersion Include="$(LocalFolder)\Source\**\AssemblyInfo.*">
<VersionRegex>(?'BeforeVersion'AssemblyVersion\(%22)(?'CoreVersion'(\*|\d+)\.)+(\*|\d+)(?'AfterVersion'%22\))</VersionRegex>
<VersionPrecision>4</VersionPrecision>
</FilesToVersion>
<FilesToVersion Include="$(LocalFolder)\Source\**\AssemblyInfo.*">
<VersionRegex>(?'BeforeVersion'AssemblyFileVersion\(%22)(?'CoreVersion'(\*|\d+)\.)+(\*|\d+)(?'AfterVersion'%22\))</VersionRegex>
<VersionPrecision>4</VersionPrecision>
</FilesToVersion>
</ItemGroup>
</Target>
<Target Name="BeforeBuildProjects">
<ItemGroup>
<!-- List of projects to build. -->
<ProjectsToBuild Include="$(ProjectSolution)"/>
<!--<ProjectsToBuild Include="$(LocalFolder)\Build\Scripts\$(ProjectName).shfbproj" Condition="'$(SkipHelpFiles)' == ''"/>-->
</ItemGroup>
</Target>
<Target Name="BeforeExecuteUnitTests">
<ItemGroup>
<!-- List of unit test assemblies. -->
<UnitTestAssemblies Include="$(BuildOutputFolder)\**\*.Test.dll"/>
</ItemGroup>
</Target>
<Target Name="AfterExecuteUnitTests">
<!-- Clean-up after all unit tests have been executed and passed. -->
<RemoveDir Directories="%(UnitTestAssemblies.RootDir)%(UnitTestAssemblies.Directory)" Condition="Exists('%(UnitTestAssemblies.RootDir)%(UnitTestAssemblies.Directory)')"/>
</Target>
<Target Name="BeforeCleanBuild">
<ItemGroup>
<!-- Exclude the main setup application from the list of build output files to be deleted. -->
<FilesToDelete Remove="$(BuildOutputFolder)\Setup\Setup.exe"/>
</ItemGroup>
</Target>
<Target Name="BeforeDeployBuild">
<ItemGroup>
<!--List of source code files to archive.-->
<SourcesToArchive Include="$(LocalFolder)\Source\**\*.*" Exclude="$(LocalFolder)\Source\**\obj\**\*.*"/>
<!-- List of binaries to archive. -->
<BinariesToArchive Include="$(BuildOutputFolder)\**\*.*" Exclude="$(BuildOutputFolder)\**\*.pdb;$(BuildOutputFolder)\**\*.wixpdb"/>
<!-- List of installs to archive. -->
<InstallsToArchive Include="$(BuildOutputFolder)\Setup\**\*.*" Exclude="$(BuildOutputFolder)\**\*.wixpdb"/>
<!-- List of database scripts to archive. -->
<ScriptsToArchive Include="$(BuildOutputFolder)\Applications\PTPSync\Database Scripts\**\*.*"/>
<!-- Destinations of archive files (*.zip). -->
<ArchiveDestinations Include="$(BuildDeployFolder)"/>
</ItemGroup>
</Target>
</Project>