-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnbuildkit.msbuild
More file actions
114 lines (107 loc) · 5.61 KB
/
nbuildkit.msbuild
File metadata and controls
114 lines (107 loc) · 5.61 KB
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
111
112
113
114
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0"
DefaultTargets="Help"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<!-- Directories -->
<!--
The workspace directory is defined as the directory that contains the 'settings.props' file.
Given that the current file has to live in the same directory as the 'settings.props' file that
means that the workspace directory is the 'MsBuildProjectDirectory' for the current file.
-->
<DirWorkspace>$(MSBuildProjectDirectory)</DirWorkspace>
<!--
Hard-code the paths to the different directories because we're dog-fooding here so we know exactly
where all the files are.
-->
<DirNBuildKitMsBuildExtensions>$(DirWorkspace)\src\msbuild\extensions</DirNBuildKitMsBuildExtensions>
<DirNBuildKitMsBuildShared>$(DirWorkspace)\src\msbuild\shared</DirNBuildKitMsBuildShared>
<DirNBuildKitMsBuildTemplates>$(DirWorkspace)\src\templates</DirNBuildKitMsBuildTemplates>
<DirMsBuildScripts>$(MSBuildProjectDirectory)</DirMsBuildScripts>
<DirNBuildKit>$(DirMsBuildScripts)\src\msbuild\scripts</DirNBuildKit>
<!-- Files -->
<!--
The file that contains all the properties for the build and deploy processes.
-->
<SharedPropertyFile>$(DirWorkspace)\settings.props</SharedPropertyFile>
</PropertyGroup>
<!--
Display the help text for the current script and then exit.
-->
<Target Name="Help">
<Message Text="nBuildKit - Build system" />
<Message Text="Copyright 2013 nBuildKit. Apache License, Version 2.0" />
<Message Text="" />
<Message Text="The following targets exist:" />
<Message Text="" />
<Message Text="- Build: Executes the build sequence. Build steps are as defined by the 'BuildStepsToExecute' in the 'settings.props' file." />
<Message Text="- Test: Executes the test sequence. Test steps are defined by the 'TestStepsToExecute' in the 'setttings.props' file." />
<Message Text="- Deploy: Executes the deploy sequence. Deploy steps are as defined by the 'DeployStepsToExecute' in the 'settings.props' file." />
<Message Text="- Help: Displays this text." />
</Target>
<!--
Invoke the build steps as defined by the 'settings.props' file by invoking the nBuildKit 'build.msbuild'
script and passing the path to the 'settings.props' file and the version of nBuildKit that is going to
be used to execute the build.
-->
<Target Name="Build">
<MSBuild
BuildInParallel="False"
Projects="$(DirNBuildKit)\build.msbuild"
Properties="SharedPropertyFile=$(SharedPropertyFile);DirNBuildKitMsBuildExtensions=$(DirNBuildKitMsBuildExtensions);DirNBuildKitMsBuildShared=$(DirNBuildKitMsBuildShared);DirNBuildKitMsBuildTemplates=$(DirNBuildKitMsBuildTemplates)"
RebaseOutputs="False"
RemoveProperties=""
RunEachTargetSeparately="True"
SkipNonexistentProjects="False"
StopOnFirstFailure="True"
TargetAndPropertyListSeparators=""
Targets=""
ToolsVersion="$(MSBuildToolsVersion)"
UnloadProjectsOnCompletion="True"
UseResultsCache="True">
</MSBuild>
</Target>
<!--
Invoke the test steps as defined by the 'settings.props' file by invoking the nBuildKit 'test.msbuild'
script and passing the path to the 'settings.props' file and the version of nBuildKit that is going to
be used to execute the tests.
-->
<Target Name="Test">
<MSBuild
BuildInParallel="False"
Projects="$(DirNBuildKit)\test.msbuild"
Properties="SharedPropertyFile=$(SharedPropertyFile);DirNBuildKitMsBuildExtensions=$(DirNBuildKitMsBuildExtensions);DirNBuildKitMsBuildShared=$(DirNBuildKitMsBuildShared);DirNBuildKitMsBuildTemplates=$(DirNBuildKitMsBuildTemplates)"
RebaseOutputs="False"
RemoveProperties=""
RunEachTargetSeparately="True"
SkipNonexistentProjects="False"
StopOnFirstFailure="True"
TargetAndPropertyListSeparators=""
Targets=""
ToolsVersion="$(MSBuildToolsVersion)"
UnloadProjectsOnCompletion="True"
UseResultsCache="True">
</MSBuild>
</Target>
<!--
Invoke the deploy steps as defined by the 'settings.props' file by invoking the nBuildKit 'deploy.msbuild'
script and passing the path to the 'settings.props' file and the version of nBuildKit that is going to
be used to execute the deploy.
--> <Target Name="Deploy">
<MSBuild
BuildInParallel="False"
Projects="$(DirNBuildKit)\deploy.msbuild"
Properties="SharedPropertyFile=$(SharedPropertyFile);DirNBuildKitMsBuildExtensions=$(DirNBuildKitMsBuildExtensions);DirNBuildKitMsBuildShared=$(DirNBuildKitMsBuildShared);DirNBuildKitMsBuildTemplates=$(DirNBuildKitMsBuildTemplates)"
RebaseOutputs="False"
RemoveProperties=""
RunEachTargetSeparately="True"
SkipNonexistentProjects="False"
StopOnFirstFailure="True"
TargetAndPropertyListSeparators=""
Targets=""
ToolsVersion="$(MSBuildToolsVersion)"
UnloadProjectsOnCompletion="True"
UseResultsCache="True">
</MSBuild>
</Target>
</Project>