File tree 1 file changed +10
-3
lines changed
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 6
6
[ValidateSet (" net451" , " netstandard1.6" )]
7
7
[string ]$Framework = " netstandard1.6" ,
8
8
9
- [ValidateSet (" Debug" , " Release" )]
9
+ [ValidateSet (" Debug" , " Release" , " PSv3Debug " , " PSv3Release " )]
10
10
[string ]$Configuration = " Debug"
11
11
)
12
12
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
+
13
18
Function Test-DotNetRestore
14
19
{
15
20
param (
@@ -38,6 +43,9 @@ if ($Framework -eq "netstandard1.6")
38
43
{
39
44
$destinationDirBinaries = " $destinationDir \coreclr"
40
45
}
46
+ elseif ($Configuration -match ' PSv3' ) {
47
+ $destinationDirBinaries = " $destinationDir \PSv3"
48
+ }
41
49
42
50
43
51
if ($build )
@@ -82,7 +90,7 @@ if ($build)
82
90
# copy newtonsoft dll if net451 framework
83
91
if ($Framework -eq " net451" )
84
92
{
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
86
94
}
87
95
}
88
96
@@ -96,7 +104,6 @@ if ($uninstall)
96
104
{
97
105
Remove-Item - Recurse $pssaModulePath - Verbose
98
106
}
99
-
100
107
}
101
108
102
109
if ($install )
You can’t perform that action at this time.
0 commit comments