Skip to content

Commit cba925b

Browse files
author
Kapil Borle
committed
Add PSv3 build from buildCoreClr.ps1
1 parent 48a6cd2 commit cba925b

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

buildCoreClr.ps1

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,15 @@
66
[ValidateSet("net451", "netstandard1.6")]
77
[string]$Framework = "netstandard1.6",
88

9-
[ValidateSet("Debug", "Release")]
9+
[ValidateSet("Debug", "Release", "PSv3Debug", "PSv3Release")]
1010
[string]$Configuration = "Debug"
1111
)
1212

13+
if ($Configuration -match "PSv3" -and $Framework -eq "netstandard1.6")
14+
{
15+
throw ("{0} configuration is not applicable to {1} framework" -f $Configuration,$Framework)
16+
}
17+
1318
Function Test-DotNetRestore
1419
{
1520
param(
@@ -38,6 +43,9 @@ if ($Framework -eq "netstandard1.6")
3843
{
3944
$destinationDirBinaries = "$destinationDir\coreclr"
4045
}
46+
elseif ($Configuration -match 'PSv3') {
47+
$destinationDirBinaries = "$destinationDir\PSv3"
48+
}
4149

4250

4351
if ($build)
@@ -82,7 +90,7 @@ if ($build)
8290
# copy newtonsoft dll if net451 framework
8391
if ($Framework -eq "net451")
8492
{
85-
copy-item -path "$solutionDir\Rules\bin\$Configuration\$Framework\Newtonsoft.Json.dll" -Destination $destinationDir -Verbose
93+
copy-item -path "$solutionDir\Rules\bin\$Configuration\$Framework\Newtonsoft.Json.dll" -Destination $destinationDirBinaries -Verbose
8694
}
8795
}
8896

@@ -96,7 +104,6 @@ if ($uninstall)
96104
{
97105
Remove-Item -Recurse $pssaModulePath -Verbose
98106
}
99-
100107
}
101108

102109
if ($install)

0 commit comments

Comments
 (0)