| IF %language%==cpp GOTO build_cpp |
| IF %language%==csharp GOTO build_csharp |
| echo Unsupported language %language%. Exiting. |
| cmake -G "%generator%" -Dprotobuf_BUILD_SHARED_LIBS=%BUILD_DLL% -Dprotobuf_UNICODE=%UNICODE% ../cmake |
| msbuild protobuf.sln /p:Platform=%vcplatform% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" || goto error |
| dotnet build -c %configuration% Google.Protobuf Google.Protobuf.Test Google.Protobuf.Conformance || goto error |
| dotnet test -c %configuration% Google.Protobuf.Test || goto error |