|
2 | 2 | [CmdletBinding()] |
3 | 3 | Param( |
4 | 4 | [Parameter(Position=1)] |
5 | | - [String] $target = "release", |
| 5 | + [String] $target = "build", |
6 | 6 | [String] $configuration = "Release", |
7 | 7 | [String[]] $frameworks=@('net46','netcoreapp2.1','netcoreapp3.1','net5.0'), |
8 | 8 | [String] $platform = "x64", |
@@ -222,16 +222,19 @@ switch -wildcard ($target) { |
222 | 222 | "stage-debug" { Main "Stage" "Debug" } |
223 | 223 | "package-debug" { Main "Package" "Debug" } |
224 | 224 | "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 } |
226 | 226 |
|
227 | 227 | # release targets |
228 | | - "restore" { Main "RestoreReferences" "Release" } |
229 | 228 | "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 } |
235 | 238 |
|
236 | 239 | # utility targets |
237 | 240 | "ngen" { |
|
0 commit comments