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>net6.0</TargetFramework> 23 <LangVersion>9.0</LangVersion> 24 <AssemblyName>Client</AssemblyName> 25 <PackageId>Client</PackageId> 26 <OutputType>Exe</OutputType> 27 <Version>0.18.0.0</Version> 28 <GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute> 29 <GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute> 30 <GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute> 31 <GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute> 32 <GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute> 33 <GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute> 34 <Nullable>enable</Nullable> 35 </PropertyGroup> 36 37 <ItemGroup> 38 <PackageReference Include="System.Net.Http.WinHttpHandler" Version="6.0.0" /> 39 <PackageReference Include="System.Runtime.Serialization.Primitives" Version="[4.3,)" /> 40 <PackageReference Include="System.ServiceModel.Primitives" Version="4.9.0" /> 41 <PackageReference Include="System.Threading" Version="[4.3,)" /> 42 </ItemGroup> 43 44 <ItemGroup> 45 <ProjectReference Include="..\..\..\lib\netstd\Thrift\Thrift.csproj" /> 46 </ItemGroup> 47 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> 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" /> 55 </Target> 56</Project> 57