blob: 1e1193b1dce8af12aadf77d495c08a3c13c18597 [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 Geyer51fc54f2023-02-14 23:51:16 +010022 <TargetFramework>net7.0</TargetFramework>
Jens Geyeraa0c8b32019-01-28 23:27:45 +010023 <AssemblyName>Interfaces</AssemblyName>
24 <PackageId>Interfaces</PackageId>
Jens Geyerc6fd86d2023-02-06 23:42:52 +010025 <Version>0.19.0.0</Version>
Jens Geyeraa0c8b32019-01-28 23:27:45 +010026 <GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
27 <GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
28 <GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
29 <GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute>
30 </PropertyGroup>
31
32 <ItemGroup>
33 <ProjectReference Include="../../../lib/netstd/Thrift/Thrift.csproj" />
34 </ItemGroup>
35
36 <ItemGroup>
Jens Geyer51fc54f2023-02-14 23:51:16 +010037 <PackageReference Include="System.ServiceModel.Primitives" Version="4.10.0" />
Jens Geyeraa0c8b32019-01-28 23:27:45 +010038 </ItemGroup>
39
40 <Target Name="PreBuild" BeforeTargets="_GenerateRestoreProjectSpec;Restore;Compile">
41 <Exec Condition="'$(OS)' == 'Windows_NT'" Command="where thrift" ConsoleToMSBuild="true">
42 <Output TaskParameter="ConsoleOutput" PropertyName="PathToThrift" />
43 </Exec>
Jens Geyer3cac3202022-01-31 18:04:35 +010044 <Exec Condition="Exists('$(PathToThrift)')" Command="$(PathToThrift) -out $(ProjectDir) -gen netstd:wcf,union,serial,net6 -r ./../../tutorial.thrift" />
45 <Exec Condition="Exists('thrift')" Command="thrift -out $(ProjectDir) -gen netstd:wcf,union,serial,net6 -r ./../../tutorial.thrift" />
46 <Exec Condition="Exists('./../../../compiler/cpp/thrift')" Command="./../../../compiler/cpp/thrift -out $(ProjectDir) -gen netstd:wcf,union,serial,net6 -r ./../../tutorial.thrift" />
Jens Geyeraa0c8b32019-01-28 23:27:45 +010047 </Target>
Jens Geyeraa0c8b32019-01-28 23:27:45 +010048</Project>