<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>WinExe</OutputType>
    <TargetFramework>net6.0-windows</TargetFramework>
    <Nullable>disable</Nullable>
    <UseWpf>true</UseWpf>
    <UseWindowsForms>true</UseWindowsForms>

    <GenerateAssemblyInfo>true</GenerateAssemblyInfo>
    <AssemblyName>TR2X_ConfigTool</AssemblyName>
    <ProduceReferenceAssembly>True</ProduceReferenceAssembly>
    <ApplicationManifest>app.manifest</ApplicationManifest>

    <EnableWindowsTargeting>true</EnableWindowsTargeting>
    <PublishSingleFile>true</PublishSingleFile>
    <PublishTrimmed>false</PublishTrimmed>
    <PublishReadyToRun>true</PublishReadyToRun>
    <EnableCompressionInSingleFile>false</EnableCompressionInSingleFile>
    <SelfContained>false</SelfContained>
    <RuntimeIdentifier>win-x64</RuntimeIdentifier>
    <ApplicationIcon>Resources\icon.ico</ApplicationIcon>
  </PropertyGroup>

  <ItemGroup>
    <Compile Remove="out\**" />
    <EmbeddedResource Remove="out\**" />
    <None Remove="out\**" />
    <Page Remove="out\**" />
  </ItemGroup>

  <ItemGroup>
    <None Remove="Resources\Graphics\graphic1.jpg" />
    <None Remove="Resources\Graphics\graphic2.jpg" />
    <None Remove="Resources\Graphics\graphic3.jpg" />
    <None Remove="Resources\Graphics\graphic4.jpg" />
    <None Remove="Resources\Graphics\graphic5.jpg" />
    <None Remove="Resources\Graphics\graphic6.jpg" />
    <None Remove="Resources\Graphics\graphic7.jpg" />
    <None Remove="Resources\const.json" />
    <None Remove="Resources\icon.ico" />
    <None Remove="Resources\Lang\en.json" />
    <None Remove="Resources\specification.json" />
    <None Remove="Resources\TR2X.png" />
  </ItemGroup>

  <ItemGroup>
    <Resource Include="Resources\Graphics\graphic1.jpg" />
    <Resource Include="Resources\Graphics\graphic2.jpg" />
    <Resource Include="Resources\Graphics\graphic3.jpg" />
    <Resource Include="Resources\Graphics\graphic4.jpg" />
    <Resource Include="Resources\Graphics\graphic5.jpg" />
    <Resource Include="Resources\Graphics\graphic6.jpg" />
    <Resource Include="Resources\Graphics\graphic7.jpg" />
    <Resource Include="Resources\icon.ico" />
    <Resource Include="Resources\TR2X.png" />
    <EmbeddedResource Include="Resources\const.json" />
    <EmbeddedResource Include="Resources\Lang\en.json" />
    <EmbeddedResource Include="Resources\specification.json" />
    <PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
    <Reference Include="TRX_ConfigToolLib">
      <HintPath>..\..\..\subprojects\libtrx\tools\config\TRX_ConfigToolLib\bin\Release\publish\TRX_ConfigToolLib.dll</HintPath>
    </Reference>
  </ItemGroup>
</Project>
