| <?xml version="1.0" encoding="utf-8"?> |
| <Project Sdk="Microsoft.NET.Sdk"> |
| |
| <PropertyGroup> |
| <IsWindows Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' == 'true'">true</IsWindows> |
| <AllowUnsafeBlocks>true</AllowUnsafeBlocks> |
| <!-- Required for PythonNET --> |
| <EnableUnsafeBinaryFormatterSerialization>true</EnableUnsafeBinaryFormatterSerialization> |
| </PropertyGroup> |
| |
| <PropertyGroup Condition="'$(IsWindows)'=='true'"> |
| <TargetFrameworks>net8.0;net472;net462</TargetFrameworks> |
| </PropertyGroup> |
| <PropertyGroup Condition="'$(IsWindows)'!='true'"> |
| <TargetFrameworks>net8.0</TargetFrameworks> |
| </PropertyGroup> |
| |
| <ItemGroup Condition="'$(TargetFramework)' == 'net462'"> |
| <PackageReference Include="xunit.runner.visualstudio" Version="2.8.2"> |
| <PrivateAssets>all</PrivateAssets> |
| <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> |
| </PackageReference> |
| </ItemGroup> |
| <ItemGroup Condition="'$(TargetFramework)' != 'net462'"> |
| <PackageReference Include="xunit.runner.visualstudio" Version="3.1.5"> |
| <PrivateAssets>all</PrivateAssets> |
| <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> |
| </PackageReference> |
| </ItemGroup> |
| |
| <ItemGroup> |
| <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1" /> |
| <PackageReference Include="xunit" Version="2.9.3" /> |
| <PackageReference Include="xunit.skippablefact" Version="1.5.23" /> |
| <PackageReference Include="pythonnet" Version="3.0.5" /> |
| </ItemGroup> |
| |
| <ItemGroup> |
| <ProjectReference Include="..\..\src\Apache.Arrow\Apache.Arrow.csproj" /> |
| </ItemGroup> |
| |
| <ItemGroup Condition="!$([MSBuild]::IsTargetFrameworkCompatible($(TargetFramework), 'net6.0'))"> |
| <Compile Remove="TimeOnlyTests.cs" /> |
| </ItemGroup> |
| |
| <ItemGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible($(TargetFramework), 'net5.0'))"> |
| <Compile Remove="Extensions\Net472Extensions.cs" /> |
| </ItemGroup> |
| |
| </Project> |