基于 appveyor .NET Standard 2.0 构建

Build on appveyor .NET Standard 2.0

我将我的项目 (https://github.com/MarkKhromov/The-Log) 迁移到 .NET Standard 2.0,但我的应用程序构建已损坏。我该如何解决这个问题?

我的解决方案包含:

我已经尝试写了:

dotnet: 2.0.0
script:
  - dotnet restore
  - dotnet build

- dotnet build TheLog/TheLog.csproj -c Release -f netstandard2.0
- msbuild TheLog.Demos/TheLog.Demos.csproj /p:Configuration=Release
- msbuild TheLog.Tests/TheLog.Tests.csproj /p:Configuration=Debug
- nunit-console TheLog.Tests/TheLog.Tests.csproj

但是我每次都出错

您需要将应用程序配置更改为 VS 2017 映像,以便构建 .NET Standard 库并将基于 dotnet 的工具用于 csproj 项目。

需要更改 AppVeyor 上的两个设置。
1. 将Build worker image更改为Visual Studio 2017 - 环境设置
2. 将“dotnet restore”命令添加到 Before build script 作为 CMD - 构建设置

我已经在 .NET Standard 2.0 或 .NET Core 2 上的新空 project/solution 集上确认了它。