Skip to content

Commit 91a36cd

Browse files
committed
Fix appveyor build image
1 parent 5134458 commit 91a36cd

2 files changed

Lines changed: 6 additions & 73 deletions

File tree

Src/appveyor.yml

Lines changed: 0 additions & 70 deletions
This file was deleted.

appveyor.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ environment:
33
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
44
matrix:
55
- job_name: windows
6-
appveyor_build_worker_image: Visual Studio 2026
6+
appveyor_build_worker_image: Visual Studio 2022
77
- job_name: linux
88
appveyor_build_worker_image: Ubuntu
99
matrix:
@@ -21,6 +21,9 @@ for:
2121
init:
2222
# default is: core.autocrlf input
2323
- git config --global core.autocrlf true
24+
install:
25+
- ps: Invoke-WebRequest -Uri "https://dot.net/v1/dotnet-install.ps1" -OutFile "dotnet-install.ps1"
26+
- ps: .\dotnet-install.ps1 -Channel 10.0 -InstallDir "$env:ProgramFiles\dotnet"
2427
build_script:
2528
- ps: cd $env:APPVEYOR_BUILD_FOLDER\Src
2629
- ps: dotnet --version
@@ -56,12 +59,12 @@ for:
5659
- job_name: linux
5760
build_script:
5861
- cd $APPVEYOR_BUILD_FOLDER/Src
59-
- curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --channel 8.0
62+
- curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --channel 10.0
6063
- export PATH="$HOME/.dotnet:$PATH"
6164
- dotnet --version
6265
- dotnet restore --verbosity quiet
6366
- dotnet add ./MailMergeLib.Tests/MailMergeLib.Tests.csproj package AltCover
6467
- dotnet build MailMergeLib.sln /verbosity:minimal /t:rebuild /p:configuration=release /nowarn:CS1591,CS0618
6568
test_script:
6669
- dotnet test --framework net10.0 MailMergeLib.sln /p:configuration=release /p:AltCover=true /p:AltCoverXmlReport="coverage.xml" /p:AltCover=true /p:AltCoverStrongNameKey="../MailMergeLib/MailMergeLib.snk" /p:AltCoverAssemblyExcludeFilter="MailMergeLib.Tests|NUnit3.TestAdapter" /p:AltCoverLineCover="true"
67-
- bash <(curl -s https://codecov.io/bash) -f ./MailMergeLib.Tests/coverage.net10.0.xml -n net10.0linux
70+
- bash <(curl -s https://codecov.io/bash) -f ./MailMergeLib.Tests/coverage.net10.0.xml -n net10.0linux

0 commit comments

Comments
 (0)