-
-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathBuild.ps1
More file actions
19 lines (14 loc) · 661 Bytes
/
Copy pathBuild.ps1
File metadata and controls
19 lines (14 loc) · 661 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Local build helper for MCEC (Model Context Environment Controller).
# If a command-line build fails, open a Visual Studio Developer prompt first:
# cmd.exe "/K" '"C:\Program Files\Microsoft Visual Studio\2022\Preview\Common7\Tools\VsDevCmd.bat" && pwsh -noexit'
param(
[string]$Configuration = "Debug",
[string]$Platform = "AnyCPU"
)
$ErrorActionPreference = "Stop"
Write-Host "Restoring..."
dotnet restore MCEControl.slnx
Write-Host "Building ($Configuration / $Platform)..."
dotnet build MCEControl.slnx --configuration $Configuration --no-restore
Write-Host "Testing..."
dotnet test MCEControl.slnx --configuration $Configuration --no-build