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