6
6
[string ]$Configuration = " Debug"
7
7
)
8
8
9
+ $resourceScript = Join-Path $BuildRoot " New-StronglyTypedCsFileForResx.ps1"
10
+
9
11
function Get-BuildInputs ($project ) {
10
12
pushd $buildRoot / $project
11
13
gci - Filter * .cs
@@ -69,6 +71,15 @@ function Get-TestTaskParam($project) {
69
71
}
70
72
}
71
73
74
+ function Get-ResourceTaskParam ($project ) {
75
+ @ {
76
+ Inputs = " $project /Strings.resx"
77
+ Outputs = " $project /Strings.cs"
78
+ Jobs = {& " $resourceScript $project " }
79
+ Before = " $project /build"
80
+ }
81
+ }
82
+
72
83
function Add-ProjectTask ([string ]$project , [string ]$taskName , [hashtable ]$taskParams , [string ]$pathPrefix = $buildRoot ) {
73
84
$jobs = [scriptblock ]::Create(@"
74
85
pushd $pathPrefix /$project
82
93
83
94
$projects = @ (" engine" , " rules" )
84
95
96
+ $projects | % {Add-ProjectTask $_ buildResource (Get-ResourceTaskParam $_ )}
97
+ task buildResource - Before build " engine/buildResource" , " rules/buildResource"
98
+
85
99
$projects | % {Add-ProjectTask $_ build (Get-BuildTaskParams $_ )}
86
100
task build " engine/build" , " rules/build"
87
101
@@ -93,3 +107,7 @@ task clean "engine/clean", "rules/clean"
93
107
94
108
$projects | % {Add-ProjectTask $_ test (Get-TestTaskParam $_ ) " $BuildRoot /tests" }
95
109
task test " engine/test" , " rules/test"
110
+
111
+ task createModule {
112
+
113
+ }
0 commit comments