1 <Project Sdk="Microsoft.NET.Sdk">
4 <TargetFramework>netstandard2.0</TargetFramework>
5 <AssemblyName>Interfaces</AssemblyName>
6 <PackageId>Interfaces</PackageId>
7 <GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
8 <GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
9 <GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
10 <GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute>
14 <ProjectReference Include="../../../lib/netcore/Thrift/Thrift.csproj" />
18 <PackageReference Include="System.ServiceModel.Primitives" Version="[4.4,)" />
21 <Target Name="PreBuild" BeforeTargets="_GenerateRestoreProjectSpec;Restore;Compile">
22 <Exec Condition="'$(OS)' == 'Windows_NT'" Command="where thrift" ConsoleToMSBuild="true">
23 <Output TaskParameter="ConsoleOutput" PropertyName="PathToThrift" />
25 <Exec Condition="Exists('$(PathToThrift)')" Command="$(PathToThrift) -out $(ProjectDir) -gen netcore:wcf,union,serial,hashcode -r ./../../tutorial.thrift" />
26 <Exec Condition="Exists('thrift')" Command="thrift -out $(ProjectDir) -gen netcore:wcf,union,serial,hashcode -r ./../../tutorial.thrift" />
27 <Exec Condition="Exists('./../../../compiler/cpp/thrift')" Command="./../../../compiler/cpp/thrift -out $(ProjectDir) -gen netcore:wcf,union,serial,hashcode -r ./../../tutorial.thrift" />