File tree Expand file tree Collapse file tree 1 file changed +29
-1
lines changed Expand file tree Collapse file tree 1 file changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,25 @@ $resourceScript = Join-Path $BuildRoot "New-StronglyTypedCsFileForResx.ps1"
10
10
$outPath = " $BuildRoot /out"
11
11
$modulePath = " $outPath /PSScriptAnalyzer"
12
12
13
+ $buildData = @ {}
14
+ if ($BuildTask -eq " release" ) {
15
+ $buildData = @ {
16
+ Frameworks = @ {
17
+ " net451" = @ {
18
+ Configuration = @ (' Release' , " PSV3Release" )
19
+ }
20
+ " netstandard1.6" = @ {
21
+ Configuration = @ (' Release' )
22
+ }
23
+ }
24
+ }
25
+ }
26
+ else {
27
+ $buildData.Add (" Frameworks" , @ {})
28
+ $buildData [" Frameworks" ].Add($Framework , @ {})
29
+ $buildData [" Frameworks" ][$Framework ].Add(" Configuration" , $Configuration )
30
+ }
31
+
13
32
function CreateIfNotExists ([string ] $folderPath ) {
14
33
if (-not (Test-Path $folderPath )) {
15
34
New-Item - Path $folderPath - ItemType Directory - Verbose:$verbosity
@@ -36,7 +55,16 @@ function Get-BuildOutputs($project) {
36
55
37
56
function Get-BuildTaskParams ($project ) {
38
57
$taskParams = @ {
39
- Jobs = {dotnet build -- framework $Framework -- configuration $Configuration }
58
+ Data = $buildData
59
+ Jobs = {
60
+ $d = $ ($Task.Data )
61
+ foreach ($frmwrk in $d.Frameworks.Keys ) {
62
+ foreach ($config in $d.Frameworks [$frmwrk ].Configuration) {
63
+ Write-Verbose - message " $config $framework " - Verbose:$true
64
+ dotnet build -- framework $frmwrk -- configuration $config
65
+ }
66
+ }
67
+ }
40
68
}
41
69
42
70
$outputs = (Get-BuildOutputs $project )
You can’t perform that action at this time.
0 commit comments