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

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net9.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
  </PropertyGroup>

  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
    <NoWarn>1701;1702</NoWarn>
  </PropertyGroup>

  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
    <NoWarn>1701;1702</NoWarn>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Fleck" Version="1.2.0" />
  </ItemGroup>

  <Target Name="PreBuild" BeforeTargets="PreBuildEvent">
    <Exec Command="git describe --tags --abbrev=0 --always &gt; version.txt" />
  </Target>

  <ItemGroup>
    <None Remove="version.txt" />
  </ItemGroup>

  <ItemGroup>
    <EmbeddedResource Include="version.txt" />
  </ItemGroup>

  <ItemGroup>
    <ProjectReference Include="..\SharpChat.Flashii\SharpChat.Flashii.csproj" />
    <ProjectReference Include="..\SharpChat.MariaDB\SharpChat.MariaDB.csproj" />
    <ProjectReference Include="..\SharpChat.SockChat\SharpChat.SockChat.csproj" />
    <ProjectReference Include="..\SharpChat.SQLite\SharpChat.SQLite.csproj" />
    <ProjectReference Include="..\SharpChatCommon\SharpChatCommon.csproj" />
  </ItemGroup>

</Project>