forked from MudBlazor/Templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
InstallAndBuildAllTemplates.ps1
36 lines (24 loc) · 2.1 KB
/
InstallAndBuildAllTemplates.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
$tests = Join-Path $PSScriptRoot '/tests'
Remove-Item -LiteralPath $tests -Force -Recurse -ErrorAction SilentlyContinue
New-Item -Path $tests -ItemType Directory
dotnet new install $(Join-Path $PSScriptRoot '/src/mudblazor') --force
dotnet new mudblazor --interactivity None --output $(Join-Path $tests 'InteractivityNone')
dotnet build $(Join-Path $tests '/InteractivityNone') /warnaserror
dotnet new mudblazor --interactivity Auto --output $(Join-Path $tests 'InteractivityAuto')
dotnet build $(Join-Path $tests '/InteractivityAuto') /warnaserror
dotnet new mudblazor --interactivity Server --output $(Join-Path $tests 'InteractivityServer')
dotnet build $(Join-Path $tests 'InteractivityServer') /warnaserror
dotnet new mudblazor --interactivity WebAssembly --output $(Join-Path $tests 'InteractivityWebAssembly')
dotnet build $(Join-Path $tests 'InteractivityWebAssembly') /warnaserror
dotnet new mudblazor --interactivity Auto --output $(Join-Path $tests 'InteractivityAuto_AllInteractive') --all-interactive
dotnet build $(Join-Path $tests 'InteractivityAuto_AllInteractive') /warnaserror
dotnet new mudblazor --interactivity Server --output $(Join-Path $tests 'InteractivityServer_AllInteractive') --all-interactive
dotnet build $(Join-Path $tests 'InteractivityServer_AllInteractive') /warnaserror
dotnet new mudblazor --interactivity WebAssembly --output $(Join-Path $tests 'InteractivityWebAssembly_AllInteractive') --all-interactive
dotnet build $(Join-Path $tests 'InteractivityWebAssembly_AllInteractive') /warnaserror
dotnet new mudblazor --interactivity Auto --output $(Join-Path $tests 'InteractivityAuto_Auth') --auth Individual
dotnet build $(Join-Path $tests 'InteractivityAuto_Auth') /warnaserror
dotnet new mudblazor --interactivity Auto --output $(Join-Path $tests 'InteractivityAuto_AllInteractive_Auth') --all-interactive --auth Individual
dotnet build $(Join-Path $tests 'InteractivityAuto_AllInteractive_Auth') /warnaserror
dotnet new mudblazor --interactivity Auto --output $(Join-Path $tests 'InteractivityAuto_UseMain') --use-program-main
dotnet build $(Join-Path $tests 'InteractivityAuto_UseMain') /warnaserror