1@rem Copyright 2016 gRPC authors. 2@rem 3@rem Licensed under the Apache License, Version 2.0 (the "License"); 4@rem you may not use this file except in compliance with the License. 5@rem You may obtain a copy of the License at 6@rem 7@rem http://www.apache.org/licenses/LICENSE-2.0 8@rem 9@rem Unless required by applicable law or agreed to in writing, software 10@rem distributed under the License is distributed on an "AS IS" BASIS, 11@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12@rem See the License for the specific language governing permissions and 13@rem limitations under the License. 14 15@rem Builds C# artifacts on Windows 16 17set ARCHITECTURE=%1 18set GRPC_SKIP_DOTNET_RESTORE=true 19@call tools\run_tests\helper_scripts\pre_build_csharp.bat %ARCHITECTURE% || goto :error 20 21cd cmake\build\%ARCHITECTURE% 22cmake --build . --target grpc_csharp_ext --config RelWithDebInfo 23cd ..\..\.. 24 25mkdir -p %ARTIFACTS_OUT% 26copy /Y cmake\build\Win32\RelWithDebInfo\grpc_csharp_ext.dll %ARTIFACTS_OUT% || copy /Y cmake\build\x64\RelWithDebInfo\grpc_csharp_ext.dll %ARTIFACTS_OUT% || goto :error 27copy /Y cmake\build\Win32\RelWithDebInfo\grpc_csharp_ext.pdb %ARTIFACTS_OUT% || copy /Y cmake\build\x64\RelWithDebInfo\grpc_csharp_ext.pdb %ARTIFACTS_OUT% || goto :error 28 29goto :EOF 30 31:error 32echo Failed! 33exit /b %errorlevel% 34