Skip to content

Commit

Permalink
Try to sort out build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nblumhardt committed Sep 12, 2022
1 parent 4a146d1 commit 72a8ab5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ $branch = @{ $true = $env:APPVEYOR_REPO_BRANCH; $false = $(git symbolic-ref --sh
$revision = @{ $true = "{0:00000}" -f [convert]::ToInt32("0" + $env:APPVEYOR_BUILD_NUMBER, 10); $false = "local" }[$env:APPVEYOR_BUILD_NUMBER -ne $NULL];
$suffix = @{ $true = ""; $false = "$branch-$revision"}[$branch -eq "main" -and $revision -ne "local"]

foreach ($src in ls src/Serilog.*) {
foreach ($src in gci src/Serilog.*) {
Push-Location $src

if ($suffix) {
Expand All @@ -21,7 +21,7 @@ foreach ($src in ls src/Serilog.*) {
Pop-Location
}

foreach ($test in ls test/Serilog.*.Tests) {
foreach ($test in gci test/Serilog.*.Tests) {
Push-Location $test

& dotnet test -c Release
Expand Down
6 changes: 3 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
version: '{build}'
skip_tags: true
image: Visual Studio 2019
image: Visual Studio 2022
install:
- ps: mkdir -Force ".\build\" | Out-Null
- pwsh: mkdir -Force ".\build\" | Out-Null
build_script:
- ps: ./Build.ps1
- pwsh: ./Build.ps1
test: off
artifacts:
- path: artifacts/Serilog.*.nupkg
Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "5.0.401",
"version": "6.0.400",
"rollForward": "latestFeature"
}
}

0 comments on commit 72a8ab5

Please sign in to comment.