| 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 |
| REM The platform environment variable is implicitly used by msbuild; |
| dotnet build -c %configuration% || goto error |
| dotnet run -c %configuration% -f netcoreapp1.0 -p Google.Protobuf.Test\Google.Protobuf.Test.csproj || goto error |
| dotnet run -c %configuration% -f net451 -p Google.Protobuf.Test\Google.Protobuf.Test.csproj || goto error |