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 | 4c7b9fd | 2021-12-04 22:48:37 +0100 | [diff] [blame] | 22 | <TargetFramework>net6.0</TargetFramework> |
Mario Emmenlauer | aeb8964 | 2021-05-05 10:50:02 +0200 | [diff] [blame] | 23 | <LangVersion>9.0</LangVersion> |
Jens Geyer | aa0c8b3 | 2019-01-28 23:27:45 +0100 | [diff] [blame] | 24 | <AssemblyName>Client</AssemblyName> |
| 25 | <PackageId>Client</PackageId> |
| 26 | <OutputType>Exe</OutputType> |
Jens Geyer | 6868ebb | 2022-01-20 21:02:02 +0100 | [diff] [blame] | 27 | <Version>0.17.0.0</Version> |
Jens Geyer | aa0c8b3 | 2019-01-28 23:27:45 +0100 | [diff] [blame] | 28 | <GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute> |
| 29 | <GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute> |
| 30 | <GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute> |
| 31 | <GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute> |
| 32 | <GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute> |
| 33 | <GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute> |
Jens Geyer | 98a2325 | 2022-01-09 16:50:52 +0100 | [diff] [blame] | 34 | <Nullable>enable</Nullable> |
Jens Geyer | aa0c8b3 | 2019-01-28 23:27:45 +0100 | [diff] [blame] | 35 | </PropertyGroup> |
Mario Emmenlauer | db997bd | 2021-08-25 11:53:41 +0200 | [diff] [blame] | 36 | |
Jens Geyer | aa0c8b3 | 2019-01-28 23:27:45 +0100 | [diff] [blame] | 37 | <ItemGroup> |
Jens Geyer | 4c7b9fd | 2021-12-04 22:48:37 +0100 | [diff] [blame] | 38 | <PackageReference Include="System.Net.Http.WinHttpHandler" Version="6.0.0" /> |
Jens Geyer | aa0c8b3 | 2019-01-28 23:27:45 +0100 | [diff] [blame] | 39 | <PackageReference Include="System.Runtime.Serialization.Primitives" Version="[4.3,)" /> |
Jens Geyer | 4c7b9fd | 2021-12-04 22:48:37 +0100 | [diff] [blame] | 40 | <PackageReference Include="System.ServiceModel.Primitives" Version="4.9.0" /> |
Jens Geyer | aa0c8b3 | 2019-01-28 23:27:45 +0100 | [diff] [blame] | 41 | <PackageReference Include="System.Threading" Version="[4.3,)" /> |
| 42 | </ItemGroup> |
Mario Emmenlauer | db997bd | 2021-08-25 11:53:41 +0200 | [diff] [blame] | 43 | |
Jens Geyer | aa0c8b3 | 2019-01-28 23:27:45 +0100 | [diff] [blame] | 44 | <ItemGroup> |
| 45 | <ProjectReference Include="..\..\..\lib\netstd\Thrift\Thrift.csproj" /> |
| 46 | </ItemGroup> |
Mario Emmenlauer | db997bd | 2021-08-25 11:53:41 +0200 | [diff] [blame] | 47 | |
Jens Geyer | aa0c8b3 | 2019-01-28 23:27:45 +0100 | [diff] [blame] | 48 | <Target Name="PreBuild" BeforeTargets="_GenerateRestoreProjectSpec;Restore;Compile"> |
| 49 | <Exec Condition="'$(OS)' == 'Windows_NT'" Command="where thrift" ConsoleToMSBuild="true"> |
| 50 | <Output TaskParameter="ConsoleOutput" PropertyName="PathToThrift" /> |
| 51 | </Exec> |
Jens Geyer | 3cac320 | 2022-01-31 18:04:35 +0100 | [diff] [blame] | 52 | <Exec Condition="Exists('$(PathToThrift)')" Command=""$(PathToThrift)" -out $(ProjectDir) -gen netstd:wcf,union,serial,net6 -r ./../../ThriftTest.thrift" /> |
| 53 | <Exec Condition="Exists('thrift')" Command="thrift -out $(ProjectDir) -gen netstd:wcf,union,serial,net6 -r ./../../ThriftTest.thrift" /> |
| 54 | <Exec Condition="Exists('$(ProjectDir)/../../../compiler/cpp/thrift')" Command="$(ProjectDir)/../../../compiler/cpp/thrift -out $(ProjectDir) -gen netstd:wcf,union,serial,net6 -r ./../../ThriftTest.thrift" /> |
Jens Geyer | aa0c8b3 | 2019-01-28 23:27:45 +0100 | [diff] [blame] | 55 | </Target> |
| 56 | </Project> |