<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>net10.0</TargetFramework>
    <OutputType>Exe</OutputType>
    <PublishUrl>publish\</PublishUrl>
    <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
    <LangVersion>default</LangVersion>
    <Nullable>enable</Nullable>
    <PublishSingleFile>true</PublishSingleFile>
    <IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
    <!-- Consolonia transitively pulls in Avalonia build tasks; MCC has no XAML resources,
         so disable the transitive Avalonia compilation to avoid file-lock races in parallel builds. -->
    <EnableAvaloniaCompilationByDefault>false</EnableAvaloniaCompilationByDefault>
  </PropertyGroup>
  <PropertyGroup>
    <SignManifests>false</SignManifests>
  </PropertyGroup>
  <PropertyGroup>
    <ApplicationIcon>Resources\AppIcon.ico</ApplicationIcon>
  </PropertyGroup>
  <PropertyGroup>
    <StartupObject>MinecraftClient.Program</StartupObject>
  </PropertyGroup>
  <ItemGroup>
    <EmbeddedResource Include="Physics\BlockShapeData.json" LogicalName="BlockShapeData.json" />
    <EmbeddedResource Include="Mcp\Prompts\MccMcpOperatorPrompt.md" LogicalName="MccMcpOperatorPrompt.md" />
    <EmbeddedResource Include="Tui\MinimapBlockColors.json" LogicalName="MinimapBlockColors.json" />
    <EmbeddedResource Include="Tui\MinimapEntityCategories.json" LogicalName="MinimapEntityCategories.json" />
  </ItemGroup>
  <ItemGroup>
    <Compile Remove="Protocol\Handlers\Compression\**" />
    <EmbeddedResource Remove="Protocol\Handlers\Compression\**" />
    <None Remove="Protocol\Handlers\Compression\**" />
  </ItemGroup>
  <ItemGroup>
    <Content Include="Resources\AppIcon.ico" />
  </ItemGroup>
  <ItemGroup>
    <PackageReference Include="Brigadier.NET" Version="1.2.13" />
    <PackageReference Include="DiscordRichPresence" Version="1.143.0" />
    <PackageReference Include="Consolonia" Version="11.3.12.3" />
    <PackageReference Include="DnsClient" Version="1.8.0" />
    <PackageReference Include="DSharpPlus" Version="4.5.1" />
    <PackageReference Include="DynamicExpresso.Core" Version="2.19.3" />
    <PackageReference Include="FuzzySharp" Version="2.0.2" />
    <PackageReference Include="Magick.NET-Q16-AnyCPU" Version="14.11.1" />
    <PackageReference Include="MessagePack" Version="3.1.4" />
    <PackageReference Include="ModelContextProtocol" Version="1.2.0" />
    <PackageReference Include="ModelContextProtocol.AspNetCore" Version="1.2.0" />
    <PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="5.3.0" />
    <PackageReference Include="Microsoft.AspNet.WebApi.Client" Version="6.0.0" />
    <PackageReference Include="Microsoft.Windows.Compatibility" Version="10.0.5" />
    <PackageReference Include="Samboy063.Tomlet" Version="6.2.0" />
    <PackageReference Include="Sentry" Version="6.3.1" />
    <PackageReference Include="SingleFileExtractor.Core" Version="2.3.0" />
	<PackageReference Include="starksoft.aspen" Version="1.1.8">
		<NoWarn>NU1701</NoWarn>
	</PackageReference>
    <PackageReference Include="Telegram.Bot" Version="22.9.5.3" />
  </ItemGroup>
  <ItemGroup>
    <Compile Remove="config\**\*.cs" />
    <Compile Remove="Mapping\VillagerInfo.cs" />
  </ItemGroup>
  <ItemGroup>
    <ProjectReference Include="..\ConsoleInteractive\ConsoleInteractive\ConsoleInteractive\ConsoleInteractive.csproj" />
  </ItemGroup>
  <ItemGroup>
    <Compile Update="Resources\AsciiArt\AsciiArt.Designer.cs">
      <DesignTime>True</DesignTime>
      <AutoGen>True</AutoGen>
      <DependentUpon>AsciiArt.resx</DependentUpon>
    </Compile>
    <Compile Update="Resources\ConfigComments\ConfigComments.Designer.cs">
      <DesignTime>True</DesignTime>
      <AutoGen>True</AutoGen>
      <DependentUpon>ConfigComments.resx</DependentUpon>
    </Compile>
    <Compile Update="Resources\MinecraftAssets.Designer.cs">
      <DesignTime>True</DesignTime>
      <AutoGen>True</AutoGen>
      <DependentUpon>MinecraftAssets.resx</DependentUpon>
    </Compile>
    <Compile Update="Resources\Translations\Translations.Designer.cs">
      <DesignTime>True</DesignTime>
      <AutoGen>True</AutoGen>
      <DependentUpon>Translations.resx</DependentUpon>
    </Compile>
  </ItemGroup>
  <ItemGroup>
    <EmbeddedResource Update="Resources\AsciiArt\AsciiArt.resx">
      <Generator>ResXFileCodeGenerator</Generator>
      <LastGenOutput>AsciiArt.Designer.cs</LastGenOutput>
      <CustomToolNamespace>MinecraftClient</CustomToolNamespace>
    </EmbeddedResource>
    <EmbeddedResource Update="Resources\ConfigComments\ConfigComments.resx">
      <Generator>ResXFileCodeGenerator</Generator>
      <LastGenOutput>ConfigComments.Designer.cs</LastGenOutput>
      <CustomToolNamespace>MinecraftClient</CustomToolNamespace>
    </EmbeddedResource>
    <EmbeddedResource Update="Resources\MinecraftAssets.resx">
      <Generator>ResXFileCodeGenerator</Generator>
      <LastGenOutput>MinecraftAssets.Designer.cs</LastGenOutput>
      <CustomToolNamespace>MinecraftClient</CustomToolNamespace>
    </EmbeddedResource>
    <EmbeddedResource Update="Resources\Translations\Translations.resx">
      <Generator>ResXFileCodeGenerator</Generator>
      <LastGenOutput>Translations.Designer.cs</LastGenOutput>
      <CustomToolNamespace>MinecraftClient</CustomToolNamespace>
    </EmbeddedResource>
  </ItemGroup>
</Project>
