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

    <PropertyGroup>
        <TargetFramework>net6.0</TargetFramework>
    </PropertyGroup>

    <PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
      <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
      <OutputPath>..\..\Bin\</OutputPath>
    </PropertyGroup>

    <PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
      <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
      <OutputPath>..\..\Bin\</OutputPath>
    </PropertyGroup>

    <ItemGroup>
      <Content Include="..\..\Unity\Assets\Plugins\MacOS\libRecastDll.dylib">
        <Link>libRecastDll.dylib</Link>
        <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
      </Content>
      <Content Include="..\..\Unity\Assets\Plugins\x86_64\RecastDll.dll">
          <Link>RecastDll.dll</Link>
          <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
      </Content>
        
      <Content Include="..\..\Unity\Assets\Plugins\MacOS\libkcp.dylib">
        <Link>libkcp.dylib</Link>
        <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
      </Content>
      <Content Include="..\..\Unity\Assets\Plugins\x86_64\kcp.dll">
        <Link>kcp.dll</Link>
        <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
      </Content>
        
    </ItemGroup>

    <ItemGroup>
      <ProjectReference Include="..\UnityEngine\UnityEngine.csproj" />
    </ItemGroup>

    <ItemGroup>
      <Compile Include="..\..\Unity\Assets\ThirdParty\ShareLib\Kcp\Kcp.cs">
        <Link>Kcp\Kcp.cs</Link>
      </Compile>
      <Compile Include="..\..\Unity\Assets\ThirdParty\ShareLib\Recast\Recast.cs">
        <Link>Recast\Recast.cs</Link>
      </Compile>
    </ItemGroup>

    <ItemGroup>
      <PackageReference Include="CommandLineParser" Version="2.8.0" />
      <PackageReference Include="EPPlus" Version="5.8.3" />
      <PackageReference Include="Microsoft.CodeAnalysis.Common" Version="4.0.1" />
      <PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.0.1" />
      <PackageReference Include="mongocsharpdriver" Version="2.13.3" />
      <PackageReference Include="MongoDB.Bson" Version="2.13.3" />
      <PackageReference Include="NLog" Version="4.7.12" />
      <PackageReference Include="protobuf-net" Version="2.4.0" />
      <PackageReference Include="SharpZipLib" Version="1.3.3" />
    </ItemGroup>

</Project>
