Skip to content

Commit

Permalink
Upgrade build to .net 6 and fail the build if the build fails (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
liammclennan committed Apr 13, 2022
1 parent 60c63be commit c25db3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if(Test-Path .\artifacts) {
}

& dotnet restore --no-cache
if($LASTEXITCODE -ne 0) { exit 1 }
if($LASTEXITCODE -ne 0) { throw "Build failed with exit code $LASTEXITCODE" }

$branch = @{ $true = $env:APPVEYOR_REPO_BRANCH; $false = $(git symbolic-ref --short -q HEAD) }[$env:APPVEYOR_REPO_BRANCH -ne $NULL];
$revision = @{ $true = "{0:00000}" -f [convert]::ToInt32("0" + $env:APPVEYOR_BUILD_NUMBER, 10); $false = "local" }[$env:APPVEYOR_BUILD_NUMBER -ne $NULL];
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: '{build}'
skip_tags: true
image: Visual Studio 2019
image: Visual Studio 2022
install:
build_script:
- pwsh: ./Build.ps1
Expand Down

0 comments on commit c25db3f

Please sign in to comment.