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

  <PropertyGroup>
    <TargetFramework>net8.0</TargetFramework>
    <GenerateDocumentationFile>true</GenerateDocumentationFile>
    <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
    <AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
	  <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
  </PropertyGroup>

  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
    <OtherFlags>--warnon:1182</OtherFlags>
    <Tailcalls>true</Tailcalls>
    <OutputPath>..\..\build\bin\plugins\XivPlugin\</OutputPath>
  </PropertyGroup>

  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
    <OutputPath>..\..\build\bin\plugins\XivPlugin\</OutputPath>
  </PropertyGroup>

  <ItemGroup>
    <Compile Include="Data\VersionRegion.fs" />
    <Compile Include="Data\PatchNumber.fs" />
    <Compile Include="Data\DataFiles.fs" />
    <Compile Include="Data\Common\World.fs" />
    <Compile Include="Data\Common\ClassJob.fs" />
    <Compile Include="Data\PatchDifference.fs" />
    <Compile Include="Data\Item.fs" />
    <Compile Include="Data\UniversalisMarketCache.fs" />
    <Compile Include="Data\Recipe\XivRecipe.fs" />
    <Compile Include="Data\Recipe\CraftRecipeProvider.fs" />
    <Compile Include="Data\Recipe\CompanyCraftRecipeProvider.fs" />
    <Compile Include="Data\Recipe\XivRecipeProvider.fs" />
    <Compile Include="Data\Shops\ShopLocation.fs" />
    <Compile Include="Data\Shops\GCScriptShop.fs" />
    <Compile Include="Data\Shops\GilShop.fs" />
    <Compile Include="Data\Shops\SpecialShop.fs" />
    <Compile Include="Data\CraftGearSet.fs" />
    <Compile Include="Data\ContentFinderCondition.fs" />
    <Compile Include="Data\CraftLeve.fs" />
    <Compile Include="Data\Race.fs" />
    <Compile Include="Modules\MarketUtils.fs" />
    <Compile Include="Modules\CommandUtils.fs" />
    <Compile Include="Modules\XivExpression.fs" />
    <Compile Include="Modules\XivServerListModule.fs" />
    <Compile Include="Modules\XivMarketPriceModule.fs" />
    <Compile Include="Modules\XivRecipeModule.fs" />
    <Compile Include="Modules\ScriptExchangeModule.fs" />
    <Compile Include="Modules\CraftLeveModule.fs" />
    <Compile Include="Modules\XivModule.fs" />
  </ItemGroup>

  <ItemGroup>
    <EmbeddedResource Include="../../datafiles/ffxiv-datamining-cn-master.zip" />
    <EmbeddedResource Include="../../datafiles/ffxiv-datamining-ja-master.zip" />
    <EmbeddedResource Include="../../datafiles/ffxiv-datamining-patchdiff.zip" />
  </ItemGroup>

  <ItemGroup>
    <EmbeddedResource Update="XivOceanFishing.resx">
      <Generator>ResXFileCodeGenerator</Generator>
    </EmbeddedResource>
    <EmbeddedResource Update="XivStrings.resx">
      <Generator>ResXFileCodeGenerator</Generator>
    </EmbeddedResource>
  </ItemGroup>

  <ItemGroup>
	  <PackageReference Include="HtmlAgilityPack" Version="1.11.53" />
  </ItemGroup>

  <ItemGroup>
    <ProjectReference Include="..\FsCqHttp\FsCqHttp.fsproj">
        <Private>False</Private>
		<IncludeAssets>compile</IncludeAssets>
    </ProjectReference>
    <ProjectReference Include="..\LibFFXIV.GameData\LibFFXIV.GameData.fsproj" />
    <ProjectReference Include="..\TheBot\TheBot.fsproj" />
  </ItemGroup>

  <ItemGroup>
    <PackageReference Update="FSharp.Core" Version="7.0.400">
      <IncludeAssets>compile</IncludeAssets>
    </PackageReference>
	<PackageReference Update="FastCsvParser">
      <IncludeAssets>all</IncludeAssets>
	</PackageReference>
  </ItemGroup>
  
</Project>
