1 <Project Sdk="Microsoft.NET.Sdk">
3 <TargetFramework>netcoreapp2.0</TargetFramework>
4 <AssemblyName>Client</AssemblyName>
5 <PackageId>Client</PackageId>
6 <OutputType>Exe</OutputType>
7 <GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute>
8 <GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
9 <GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
10 <GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
11 <GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
12 <GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute>
15 <PackageReference Include="System.Net.Http.WinHttpHandler" Version="[4.4,)" />
16 <PackageReference Include="System.Runtime.Serialization.Primitives" Version="[4.3,)" />
17 <PackageReference Include="System.ServiceModel.Primitives" Version="[4.4,)" />
18 <PackageReference Include="System.Threading" Version="[4.3,)" />
21 <ProjectReference Include="..\..\..\lib\netcore\Thrift\Thrift.csproj" />
23 <Target Name="PreBuild" BeforeTargets="_GenerateRestoreProjectSpec;Restore;Compile">
24 <Exec Condition="'$(OS)' == 'Windows_NT'" Command="where thrift" ConsoleToMSBuild="true">
25 <Output TaskParameter="ConsoleOutput" PropertyName="PathToThrift" />
27 <Exec Condition="Exists('$(PathToThrift)')" Command=""$(PathToThrift)" -out $(ProjectDir) -gen netcore:wcf,union,serial,hashcode -r ./../../ThriftTest.thrift" />
28 <Exec Condition="Exists('thrift')" Command="thrift -out $(ProjectDir) -gen netcore:wcf,union,serial,hashcode -r ./../../ThriftTest.thrift" />
29 <Exec Condition="Exists('$(ProjectDir)/../../../compiler/cpp/thrift')" Command="$(ProjectDir)/../../../compiler/cpp/thrift -out $(ProjectDir) -gen netcore:wcf,union,serial,hashcode -r ./../../ThriftTest.thrift" />