<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFramework>netstandard2.0</TargetFramework>
  </PropertyGroup>

  <ItemGroup Condition="'$(OS)' == 'Windows_NT'">
    <Content Include="$(ProjectDir)/SourcetrailDB.dll">
        <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
        <Link>SourcetrailDB.dll</Link>
    </Content>
  </ItemGroup>

  <ItemGroup Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))'">
    <Content Include="$(ProjectDir)/SourcetrailDB.so">
        <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
        <Link>SourcetrailDB.so</Link>
    </Content>
  </ItemGroup>

  <ItemGroup Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::OSX)))'">
    <Content Include="$(ProjectDir)/SourcetrailDB.dylib">
        <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
        <Link>SourcetrailDB.dylib</Link>
    </Content>
  </ItemGroup>
</Project>
