Skip to content

Commit 08e7700

Browse files
committed
Build fixes
1 parent 99c65f8 commit 08e7700

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

Build.ps1

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ echo "build: Build started"
33
Push-Location $PSScriptRoot
44

55
if(Test-Path .\artifacts) {
6-
echo "build: Cleaning .\artifacts"
7-
Remove-Item .\artifacts -Force -Recurse
6+
echo "build: Cleaning ./artifacts"
7+
Remove-Item ./artifacts -Force -Recurse
88
}
99

1010
& dotnet restore --no-cache
@@ -18,24 +18,24 @@ $buildSuffix = @{ $true = "$($suffix)-$($commitHash)"; $false = "$($branch)-$($c
1818
echo "build: Package version suffix is $suffix"
1919
echo "build: Build version suffix is $buildSuffix"
2020

21-
foreach ($src in ls src/*) {
21+
foreach ($src in gci src/*) {
2222
Push-Location $src
2323

2424
echo "build: Packaging project in $src"
2525

2626
& dotnet build -c Release --version-suffix=$buildSuffix
2727

2828
if($suffix) {
29-
& dotnet pack -c Release --include-source --no-build -o ..\..\artifacts --version-suffix=$suffix
29+
& dotnet pack -c Release --include-source --no-build -o ../../artifacts --version-suffix=$suffix
3030
} else {
31-
& dotnet pack -c Release --include-source --no-build -o ..\..\artifacts
31+
& dotnet pack -c Release --include-source --no-build -o ../../artifacts
3232
}
3333
if($LASTEXITCODE -ne 0) { exit 1 }
3434

3535
Pop-Location
3636
}
3737

38-
foreach ($test in ls test/*.Tests) {
38+
foreach ($test in gci test/*.Tests) {
3939
Push-Location $test
4040

4141
echo "build: Testing project in $test"

appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
version: '{build}'
22
skip_tags: true
3-
image: Visual Studio 2019
3+
image: Visual Studio 2022
44
build_script:
5-
- ps: ./Build.ps1
5+
- pwsh: ./Build.ps1
66
artifacts:
77
- path: artifacts/Serilog.*.nupkg
88
deploy:

test/Serilog.Expressions.Tests/Serilog.Expressions.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net5.0</TargetFramework>
3+
<TargetFramework>net6.0</TargetFramework>
44
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
55
</PropertyGroup>
66
<ItemGroup>

0 commit comments

Comments
 (0)