<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="Current">
    <PropertyGroup>
        <Product>ModernUO Core</Product>
        <OutDir>..\..\Distribution</OutDir>
        <PublishDir>..\..\Distribution</PublishDir>
        <Version>0.0.0</Version>
        <Configurations>Debug;Release;Analyze</Configurations>
        <RootNamespace>Server</RootNamespace>
        <PackageId>Server</PackageId>
    </PropertyGroup>
    <Target Name="CleanPub" AfterTargets="Clean">
        <Message Text="Server: Removing distribution files..." />
        <Delete Files="..\..\Distribution\$(AssemblyName)" ContinueOnError="true" />
        <Delete Files="..\..\Distribution\$(AssemblyName).deps.json" ContinueOnError="true" />
        <Delete Files="..\..\Distribution\$(AssemblyName).dll" ContinueOnError="true" />
        <Delete Files="..\..\Distribution\$(AssemblyName).dll.config" ContinueOnError="true" />
        <Delete Files="..\..\Distribution\$(AssemblyName).exe" ContinueOnError="true" />
        <Delete Files="..\..\Distribution\$(AssemblyName).pdb" ContinueOnError="true" />
        <Delete Files="..\..\Distribution\$(AssemblyName).runtimeconfig.dev.json" ContinueOnError="true" />
        <Delete Files="..\..\Distribution\$(AssemblyName).runtimeconfig.json" ContinueOnError="true" />
        <Delete Files="..\..\Distribution\ModernUO.Serialization.Annotations.dll" ContinueOnError="true" />
        <Delete Files="..\..\Distribution\CommunityToolkit.HighPerformance.dll" ContinueOnError="true" />
        <Delete Files="..\..\Distribution\PollGroup.dll" ContinueOnError="true" />
        <Delete Files="..\..\Distribution\ref\$(AssemblyName).dll" ContinueOnError="true" />
        <Delete Files="..\..\Distribution\Serilog.dll" ContinueOnError="true" />
        <Delete Files="..\..\Distribution\Serilog.Sinks.Async.dll" ContinueOnError="true" />
        <Delete Files="..\..\Distribution\Serilog.Sinks.Console.dll" ContinueOnError="true" />
        <Delete Files="..\..\Distribution\wepoll.dll" ContinueOnError="true" />
        <Delete Files="..\..\Distribution\LibDeflate.Bindings.dll" ContinueOnError="true" />
        <Delete Files="..\..\Distribution\libdeflate.dll" ContinueOnError="true" />
        <Delete Files="..\..\Distribution\libdeflate.dylib" ContinueOnError="true" />
        <Delete Files="..\..\Distribution\System.IO.Hashing.dll" ContinueOnError="true" />
    </Target>
    <ItemGroup>
        <PackageReference Include="CommunityToolkit.HighPerformance" Version="8.2.2" />
        <PackageReference Include="LibDeflate.Bindings" Version="1.0.2.120" />
        <PackageReference Include="PollGroup" Version="1.5.1" />
        <PackageReference Include="System.IO.Hashing" Version="8.0.0" />

        <PackageReference Include="ModernUO.Serialization.Annotations" Version="2.9.1" />
        <PackageReference Include="ModernUO.Serialization.Generator" Version="2.11.3" />
    </ItemGroup>
    <ItemGroup>
        <AdditionalFiles Include="Migrations/*.v*.json" />
    </ItemGroup>
</Project>
