summaryrefslogtreecommitdiff
path: root/lib/Djup.Native/Djup.Native.csproj
blob: 7184efb6066b41b0e3481f18cf790709a5b52a83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFramework>net8.0</TargetFramework>
    <!--<OutputType>exe</OutputType>-->
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
  </PropertyGroup>
  <ItemGroup Condition=" '$(Configuration)'=='Release' ">
    <None Include="$(MSBuildThisFileDirectory)../build/runtimes/linux-x64/native/libdjup.so"> 
      <TargetPath>runtimes/linux-x64/native/libdjup.so</TargetPath>
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
      <PackagePath>runtimes/linux-x64/native/</PackagePath>
      <Pack>true</Pack>
    </None>
  </ItemGroup>
  <ItemGroup Condition=" '$(Configuration)'=='Debug' ">
    <Content Include="$(MSBuildThisFileDirectory)../build/**">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </Content>
  </ItemGroup>
  <!-- This fixes import errors (adding another library with native assets) -->
  <!--<ItemGroup>-->
  <!--  <PackageReference Include="SQLitePCLRaw.lib.e_sqlite3" Version="2.1.10" />-->
  <!--</ItemGroup>-->
</Project>