-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathBuild.ps1
More file actions
15 lines (12 loc) · 648 Bytes
/
Build.ps1
File metadata and controls
15 lines (12 loc) · 648 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#Requires -Version 7.4
$ErrorActionPreference = "Stop"
$PSNativeCommandUseErrorActionPreference = $true
Write-Host "$(pwsh --version)"
Write-Host ".NET SDK $(dotnet --version)"
Remove-Item -Recurse -Force artifacts -ErrorAction SilentlyContinue
Remove-Item -Recurse -Force * -Include coverage.cobertura.xml
dotnet tool restore
dotnet build --configuration Release
dotnet test --no-build --configuration Release --verbosity quiet --collect:"XPlat Code Coverage"
dotnet reportgenerator -reports:**\coverage.cobertura.xml -targetdir:artifacts\coverage -filefilters:-*.g.cs
dotnet pack --no-build --configuration Release --output artifacts/packages