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

  <PropertyGroup>
    <TargetFrameworks>netstandard2.0;net6.0;net8.0</TargetFrameworks>
    <PackageReadmeFile>README.md</PackageReadmeFile>
    <PackageLicenseFile>LICENSE</PackageLicenseFile>
    <PackageProjectUrl>https://github.com/dmitry-brazhenko/SharpToken</PackageProjectUrl>
    <PublishRepositoryUrl>true</PublishRepositoryUrl>
  </PropertyGroup>

  <PropertyGroup Condition="'$(Configuration)' == 'Release'">
    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
  </PropertyGroup>

  <PropertyGroup>
    <KeyFilePath>keypair.snk</KeyFilePath>
    <EnableSigning>false</EnableSigning>
  </PropertyGroup>

  <PropertyGroup Condition="'$(Configuration)' == 'Release' AND '$(EnableSigning)' == 'true'">
    <SignAssembly>true</SignAssembly>
    <AssemblyOriginatorKeyFile>$(KeyFilePath)</AssemblyOriginatorKeyFile>
  </PropertyGroup>

  <ItemGroup>
    <Folder Include="data\" />
  </ItemGroup>

  <ItemGroup>
    <None Include="..\README.md" Pack="true" PackagePath="\" />
    <None Include="..\LICENSE" Pack="true" PackagePath="" />

    <None Remove="Lib\" />
    <None Remove="data\" />
    <None Remove="data\cl100k_base.tiktoken" />
    <None Remove="data\o200k_base.tiktoken" />
    <None Remove="data\p50k_base.tiktoken" />
    <None Remove="data\r50k_base.tiktoken" />
  </ItemGroup>
  <ItemGroup>
    <EmbeddedResource Include="data\cl100k_base.tiktoken" />
    <EmbeddedResource Include="data\o200k_base.tiktoken" />
    <EmbeddedResource Include="data\p50k_base.tiktoken" />
    <EmbeddedResource Include="data\r50k_base.tiktoken" />
  </ItemGroup>
</Project>
