File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 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+
1318Function 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
4351if ($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
102109if ($install )
You can’t perform that action at this time.
0 commit comments