xref: /aosp_15_r20/external/grpc-grpc/tools/run_tests/helper_scripts/build_csharp.bat (revision cc02d7e222339f7a4f6ba5f422e6413f4bd931f2)
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
15cd /d %~dp0\..\..\..
16
17cd src\csharp
18
19@rem remove once Grpc.Tools has been removed from this repository
20dotnet build --configuration %MSBUILD_CONFIG% Grpc.sln || goto :error
21
22goto :EOF
23
24:error
25echo Failed!
26exit /b %errorlevel%