forked from VirtualPhotonics/VTS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBuildTestCore.ps1
More file actions
14 lines (12 loc) · 792 Bytes
/
BuildTestCore.ps1
File metadata and controls
14 lines (12 loc) · 792 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Write-Host "Build Vts library Debug & Release" -ForegroundColor Green
dotnet build $PWD\src\Vts\Vts.csproj -c Debug
dotnet build $PWD\src\Vts\Vts.csproj -c Release
Write-Host "Build Vts.Test Debug & Release" -ForegroundColor Green
dotnet build $PWD\src\Vts.Test\Vts.Test.csproj -c Debug
dotnet build $PWD\src\Vts.Test\Vts.Test.csproj -c Release
Write-Host "Run Vts.Test Debug and Release" -ForegroundColor Green
dotnet test $PWD\src\Vts.Test\Vts.Test.csproj -l "console;verbosity=quiet" -c Debug
dotnet test $PWD\src\Vts.Test\Vts.Test.csproj -c Release
Write-Host "Publish the VTS dll to platform specific folders" -ForegroundColor Green
Remove-Item $PWD\publish -Recurse -ErrorAction Ignore
dotnet publish $PWD\src\Vts\Vts.csproj -c Release -o $PWD\publish\local --self-contained false