Skip to content

Commit 11e14a8

Browse files
authored
Use configuration setting in make.ps1 (#1081)
1 parent 6fd3527 commit 11e14a8

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

make.ps1

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
[CmdletBinding()]
33
Param(
44
[Parameter(Position=1)]
5-
[String] $target = "release",
5+
[String] $target = "build",
66
[String] $configuration = "Release",
77
[String[]] $frameworks=@('net46','netcoreapp2.1','netcoreapp3.1','net5.0'),
88
[String] $platform = "x64",
@@ -222,16 +222,19 @@ switch -wildcard ($target) {
222222
"stage-debug" { Main "Stage" "Debug" }
223223
"package-debug" { Main "Package" "Debug" }
224224
"test-debug-*" { Test $target.Substring(11) "Debug" $frameworks $platform; break }
225-
"test-debug" { Test "" "Debug" $frameworks $platform; break }
225+
"test-debug" { Test "all" "Debug" $frameworks $platform; break }
226226

227227
# release targets
228-
"restore" { Main "RestoreReferences" "Release" }
229228
"release" { Main "Build" "Release" }
230-
"clean" { Main "Clean" "Release" }
231-
"stage" { Main "Stage" "Release" }
232-
"package" { Main "Package" "Release" }
233-
"test-*" { Test $target.Substring(5) "Release" $frameworks $platform; break }
234-
"test" { Test "" "Release" $frameworks $platform; break }
229+
230+
# general targets
231+
"restore" { Main "RestoreReferences" $configuration }
232+
"build" { Main "Build" $configuration }
233+
"clean" { Main "Clean" $configuration }
234+
"stage" { Main "Stage" $configuration }
235+
"package" { Main "Package" $configuration }
236+
"test-*" { Test $target.Substring(5) $configuration $frameworks $platform; break }
237+
"test" { Test "all" $configuration $frameworks $platform; break }
235238

236239
# utility targets
237240
"ngen" {

0 commit comments

Comments
 (0)