Jens Geyer | aa0c8b3 | 2019-01-28 23:27:45 +0100 | [diff] [blame] | 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> |
Jens Geyer | 526a1ac | 2021-02-13 13:58:09 +0100 | [diff] [blame] | 22 | <TargetFramework>net5.0</TargetFramework> |
Jens Geyer | aa0c8b3 | 2019-01-28 23:27:45 +0100 | [diff] [blame] | 23 | <AssemblyName>Client</AssemblyName> |
| 24 | <PackageId>Client</PackageId> |
| 25 | <OutputType>Exe</OutputType> |
Jens Geyer | 3fc0b8d | 2021-02-11 23:17:45 +0100 | [diff] [blame] | 26 | <Version>0.15.0.0</Version> |
Jens Geyer | aa0c8b3 | 2019-01-28 23:27:45 +0100 | [diff] [blame] | 27 | <GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute> |
| 28 | <GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute> |
| 29 | <GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute> |
| 30 | <GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute> |
| 31 | <GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute> |
| 32 | <GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute> |
| 33 | </PropertyGroup> |
| 34 | <ItemGroup> |
Jens Geyer | 526a1ac | 2021-02-13 13:58:09 +0100 | [diff] [blame] | 35 | <PackageReference Include="System.Net.Http.WinHttpHandler" Version="5.0.0" /> |
Jens Geyer | aa0c8b3 | 2019-01-28 23:27:45 +0100 | [diff] [blame] | 36 | <PackageReference Include="System.Runtime.Serialization.Primitives" Version="[4.3,)" /> |
Jens Geyer | 526a1ac | 2021-02-13 13:58:09 +0100 | [diff] [blame] | 37 | <PackageReference Include="System.ServiceModel.Primitives" Version="4.8.1" /> |
Jens Geyer | aa0c8b3 | 2019-01-28 23:27:45 +0100 | [diff] [blame] | 38 | <PackageReference Include="System.Threading" Version="[4.3,)" /> |
| 39 | </ItemGroup> |
| 40 | <ItemGroup> |
| 41 | <ProjectReference Include="..\..\..\lib\netstd\Thrift\Thrift.csproj" /> |
| 42 | </ItemGroup> |
| 43 | <Target Name="PreBuild" BeforeTargets="_GenerateRestoreProjectSpec;Restore;Compile"> |
| 44 | <Exec Condition="'$(OS)' == 'Windows_NT'" Command="where thrift" ConsoleToMSBuild="true"> |
| 45 | <Output TaskParameter="ConsoleOutput" PropertyName="PathToThrift" /> |
| 46 | </Exec> |
| 47 | <Exec Condition="Exists('$(PathToThrift)')" Command=""$(PathToThrift)" -out $(ProjectDir) -gen netstd:wcf,union,serial -r ./../../ThriftTest.thrift" /> |
| 48 | <Exec Condition="Exists('thrift')" Command="thrift -out $(ProjectDir) -gen netstd:wcf,union,serial -r ./../../ThriftTest.thrift" /> |
| 49 | <Exec Condition="Exists('$(ProjectDir)/../../../compiler/cpp/thrift')" Command="$(ProjectDir)/../../../compiler/cpp/thrift -out $(ProjectDir) -gen netstd:wcf,union,serial -r ./../../ThriftTest.thrift" /> |
| 50 | </Target> |
| 51 | </Project> |