]>
Commit | Line | Data |
---|---|---|
f67539c2 TL |
1 | <Project Sdk="Microsoft.NET.Sdk"> |
2 | <!-- | |
3 | Licensed to the Apache Software Foundation(ASF) under one | |
4 | or more contributor license agreements.See the NOTICE file | |
5 | distributed with this work for additional information | |
6 | regarding copyright ownership.The ASF licenses this file | |
7 | to you under the Apache License, Version 2.0 (the | |
8 | "License"); you may not use this file except in compliance | |
9 | with the License. You may obtain a copy of the License at | |
10 | ||
11 | http://www.apache.org/licenses/LICENSE-2.0 | |
12 | ||
13 | Unless required by applicable law or agreed to in writing, | |
14 | software distributed under the License is distributed on an | |
15 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
16 | KIND, either express or implied. See the License for the | |
17 | specific language governing permissions and limitations | |
18 | under the License. | |
19 | --> | |
20 | ||
21 | <PropertyGroup> | |
22 | <TargetFramework>netcoreapp2.0</TargetFramework> | |
23 | <AssemblyName>Server</AssemblyName> | |
24 | <PackageId>Server</PackageId> | |
25 | <OutputType>Exe</OutputType> | |
26 | <GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute> | |
27 | <GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute> | |
28 | <GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute> | |
29 | <GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute> | |
30 | <GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute> | |
31 | <GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute> | |
32 | </PropertyGroup> | |
33 | <ItemGroup> | |
34 | <PackageReference Include="System.IO.Pipes" Version="4.3.0" /> | |
35 | <PackageReference Include="System.IO.Pipes.AccessControl" Version="4.5.1" /> | |
36 | <PackageReference Include="System.Net.Http.WinHttpHandler" Version="4.5.2" /> | |
37 | <PackageReference Include="System.Runtime.Serialization.Primitives" Version="[4.3,)" /> | |
38 | <PackageReference Include="System.ServiceModel.Primitives" Version="4.5.3" /> | |
39 | <PackageReference Include="System.Threading" Version="[4.3,)" /> | |
40 | </ItemGroup> | |
41 | <ItemGroup> | |
42 | <ProjectReference Include="..\..\..\lib\netstd\Thrift\Thrift.csproj" /> | |
43 | </ItemGroup> | |
44 | <Target Name="PreBuild" BeforeTargets="_GenerateRestoreProjectSpec;Restore;Compile"> | |
45 | <Exec Condition="'$(OS)' == 'Windows_NT'" Command="where thrift" ConsoleToMSBuild="true"> | |
46 | <Output TaskParameter="ConsoleOutput" PropertyName="PathToThrift" /> | |
47 | </Exec> | |
48 | <Exec Condition="Exists('$(PathToThrift)')" Command=""$(PathToThrift)" -out $(ProjectDir) -gen netstd:wcf,union,serial -r ./../../ThriftTest.thrift" /> | |
49 | <Exec Condition="Exists('thrift')" Command="thrift -out $(ProjectDir) -gen netstd:wcf,union,serial -r ./../../ThriftTest.thrift" /> | |
50 | <Exec Condition="Exists('$(ProjectDir)/../../../compiler/cpp/thrift')" Command="$(ProjectDir)/../../../compiler/cpp/thrift -out $(ProjectDir) -gen netstd:wcf,union,serial -r ./../../ThriftTest.thrift" /> | |
51 | </Target> | |
52 | </Project> |