66 [string ]$Configuration = " Debug"
77)
88
9+ $resourceScript = Join-Path $BuildRoot " New-StronglyTypedCsFileForResx.ps1"
10+
911function Get-BuildInputs ($project ) {
1012 pushd $buildRoot / $project
1113 gci - Filter * .cs
@@ -69,6 +71,15 @@ function Get-TestTaskParam($project) {
6971 }
7072}
7173
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+
7283function Add-ProjectTask ([string ]$project , [string ]$taskName , [hashtable ]$taskParams , [string ]$pathPrefix = $buildRoot ) {
7384 $jobs = [scriptblock ]::Create(@"
7485pushd $pathPrefix /$project
8293
8394$projects = @ (" engine" , " rules" )
8495
96+ $projects | % {Add-ProjectTask $_ buildResource (Get-ResourceTaskParam $_ )}
97+ task buildResource - Before build " engine/buildResource" , " rules/buildResource"
98+
8599$projects | % {Add-ProjectTask $_ build (Get-BuildTaskParams $_ )}
86100task build " engine/build" , " rules/build"
87101
@@ -93,3 +107,7 @@ task clean "engine/clean", "rules/clean"
93107
94108$projects | % {Add-ProjectTask $_ test (Get-TestTaskParam $_ ) " $BuildRoot /tests" }
95109task test " engine/test" , " rules/test"
110+
111+ task createModule {
112+
113+ }
0 commit comments