-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathrun_all.ps1
44 lines (37 loc) · 1.14 KB
/
run_all.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
param([bool] $Debug = $true, [String[]] $ExcludedServices = @())
$projInfoType = "tuple[String,String]"
$projInfos = @(
# New-Object $projInfoType "MetaServices", "1"
New-Object $projInfoType "Catalog", "2"
New-Object $projInfoType "Commerce", "3"
New-Object $projInfoType "Catalog.Image", "4"
New-Object $projInfoType "SocialApi", "5"
# New-Object $projInfoType "Comments", "6"
# New-Object $projInfoType "Inbox", "7"
New-Object $projInfoType "Mix", "8"
# New-Object $projInfoType "Stats", "9"
# New-Object $projInfoType "Cache", "10"
# New-Object $projInfoType "Tuners", "11"
New-Object $projInfoType "Tiles", "12"
New-Object $projInfoType "Login", "14"
)
if ($Debug -eq $true)
{
$configuration = "Debug"
}
else
{
$configuration = "Release"
}
foreach ($projInfo in $projInfos)
{
$projName = $projInfo.Item1
$hostNum = $projInfo.Item2
if ($ExcludedServices -Contains $projName)
{
continue
}
$command = "dotnet run --no-build --project Zune.Net." + $projName
echo $command
Start-Process powershell.exe -ArgumentList "-noexit", ("-command " + $command)
}