blob: 2373e400223635c081d0825545dfc5804b857681 [file] [log] [blame]
Jens Geyeraa0c8b32019-01-28 23:27:45 +01001<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 Geyer4c7b9fd2021-12-04 22:48:37 +010022 <TargetFramework>net6.0</TargetFramework>
Mario Emmenlaueraeb89642021-05-05 10:50:02 +020023 <LangVersion>9.0</LangVersion>
Jens Geyeraa0c8b32019-01-28 23:27:45 +010024 <AssemblyName>Client</AssemblyName>
25 <PackageId>Client</PackageId>
26 <OutputType>Exe</OutputType>
Jens Geyerc75646a2022-08-30 22:54:32 +020027 <Version>0.18.0.0</Version>
Jens Geyeraa0c8b32019-01-28 23:27:45 +010028 <GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute>
29 <GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
30 <GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
31 <GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
32 <GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
33 <GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute>
Jens Geyer98a23252022-01-09 16:50:52 +010034 <Nullable>enable</Nullable>
Jens Geyeraa0c8b32019-01-28 23:27:45 +010035 </PropertyGroup>
Mario Emmenlauerdb997bd2021-08-25 11:53:41 +020036
Jens Geyeraa0c8b32019-01-28 23:27:45 +010037 <ItemGroup>
Jens Geyer4c7b9fd2021-12-04 22:48:37 +010038 <PackageReference Include="System.Net.Http.WinHttpHandler" Version="6.0.0" />
Jens Geyeraa0c8b32019-01-28 23:27:45 +010039 <PackageReference Include="System.Runtime.Serialization.Primitives" Version="[4.3,)" />
Jens Geyer4c7b9fd2021-12-04 22:48:37 +010040 <PackageReference Include="System.ServiceModel.Primitives" Version="4.9.0" />
Jens Geyeraa0c8b32019-01-28 23:27:45 +010041 <PackageReference Include="System.Threading" Version="[4.3,)" />
42 </ItemGroup>
Mario Emmenlauerdb997bd2021-08-25 11:53:41 +020043
Jens Geyeraa0c8b32019-01-28 23:27:45 +010044 <ItemGroup>
45 <ProjectReference Include="..\..\..\lib\netstd\Thrift\Thrift.csproj" />
46 </ItemGroup>
Mario Emmenlauerdb997bd2021-08-25 11:53:41 +020047
Jens Geyeraa0c8b32019-01-28 23:27:45 +010048 <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 Geyer3cac3202022-01-31 18:04:35 +010052 <Exec Condition="Exists('$(PathToThrift)')" Command="&quot;$(PathToThrift)&quot; -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 Geyeraa0c8b32019-01-28 23:27:45 +010055 </Target>
56</Project>