Appveyor CI build uses .NET lower than current

24 Views Asked by At

Having the project which uses .NET 7 target package:

<Project>
    <PropertyGroup>
        <TargetFramework>net7.0</TargetFramework>
    </PropertyGroup>
</Project>  

In Visual Studio 2022 it builds normally without any error. Also have GitHub actions that are also building without any error.

However when it comes to ci.appveyor.com it couldn't build and throws these errors.

enter image description here

Could you please advise what could cause such errors? And why?

1

There are 1 best solutions below

0
kanils_ On BEST ANSWER

These errors were fixed by changing Visual Studio build worker image. Also, I updated my solution version of Visual Studio which supports .NET 7. enter image description here