Volodymyr Gotra | b587a12 | 2016-09-14 19:18:48 -0500 | [diff] [blame^] | 1 | @echo off |
| 2 | rem /* |
| 3 | rem * Licensed to the Apache Software Foundation (ASF) under one |
| 4 | rem * or more contributor license agreements. See the NOTICE file |
| 5 | rem * distributed with this work for additional information |
| 6 | rem * regarding copyright ownership. The ASF licenses this file |
| 7 | rem * to you under the Apache License, Version 2.0 (the |
| 8 | rem * "License"); you may not use this file except in compliance |
| 9 | rem * with the License. You may obtain a copy of the License at |
| 10 | rem * |
| 11 | rem * http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | rem * |
| 13 | rem * Unless required by applicable law or agreed to in writing, |
| 14 | rem * software distributed under the License is distributed on an |
| 15 | rem * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 16 | rem * KIND, either express or implied. See the License for the |
| 17 | rem * specific language governing permissions and limitations |
| 18 | rem * under the License. |
| 19 | rem */ |
| 20 | setlocal |
| 21 | |
| 22 | cd ThriftTest |
| 23 | thrift -gen netcore:wcf -r ..\..\ThriftTest.thrift |
| 24 | cd .. |
| 25 | |
| 26 | rem * Due to a known issue with "dotnet restore" the Thrift.dll dependency cannot be resolved from cmdline |
| 27 | rem * For details see https://github.com/dotnet/cli/issues/3199 and related tickets |
| 28 | rem * The problem does NOT affect Visual Studio builds. |
| 29 | |
| 30 | rem * workaround for "dotnet restore" issue |
| 31 | xcopy ..\..\lib\netcore\Thrift .\Thrift /YSEI >NUL |
| 32 | |
| 33 | dotnet --info |
| 34 | dotnet restore |
| 35 | |
| 36 | dotnet build **/*/project.json -r win10-x64 |
| 37 | dotnet build **/*/project.json -r osx.10.11-x64 |
| 38 | dotnet build **/*/project.json -r ubuntu.16.04-x64 |
| 39 | |
| 40 | rem * workaround for "dotnet restore" issue |
| 41 | del .\Thrift\* /Q /S >NUL |
| 42 | rd .\Thrift /Q /S >NUL |
| 43 | |
| 44 | |
| 45 | :eof |