-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcake.ps1
30 lines (25 loc) · 1.17 KB
/
cake.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
[string]$project_presentation_core = 'Zongsoft.Presentation/build.cake'
[string]$project_presentation_avalonia = 'Zongsoft.Presentation.Avalonia/build.cake'
[string]$project_presentation_windows = 'Zongsoft.Presentation.Windows/build.cake'
[string]$project_presentation_plugins = 'Zongsoft.Presentation.Plugins/build.cake'
[string]$CAKE_ARGS = '--verbosity=normal'
if(Test-Path $project_presentation_core)
{
Write-Host "dotnet cake $project_presentation_core $CAKE_ARGS $ARGS" -ForegroundColor Magenta
dotnet cake $project_presentation_core $CAKE_ARGS $ARGS
}
if(Test-Path $project_presentation_avalonia)
{
Write-Host "dotnet cake $project_presentation_avalonia $CAKE_ARGS $ARGS" -ForegroundColor Magenta
dotnet cake $project_presentation_avalonia $CAKE_ARGS $ARGS
}
if(Test-Path $project_presentation_windows)
{
Write-Host "dotnet cake $project_presentation_windows $CAKE_ARGS $ARGS" -ForegroundColor Magenta
dotnet cake $project_presentation_windows $CAKE_ARGS $ARGS
}
if(Test-Path $project_presentation_plugins)
{
Write-Host "dotnet cake $project_presentation_plugins $CAKE_ARGS $ARGS" -ForegroundColor Magenta
dotnet cake $project_presentation_plugins $CAKE_ARGS $ARGS
}