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

  <PropertyGroup>
    <OutputType>WinExe</OutputType>
    <TargetFrameworks>net46;netcoreapp3.0</TargetFrameworks>
    <UseWindowsForms>true</UseWindowsForms>
    <PackageId>PKHeX</PackageId>
    <Company>Project Pokémon</Company>
    <Authors>Kaphotics</Authors>
    <Product>PKHeX</Product>
    <Description>Pokémon Save Editor</Description>
    <ApplicationIcon>icon.ico</ApplicationIcon>
    <StartupObject>PKHeX.WinForms.Program</StartupObject>
    <AssemblyName>PKHeX</AssemblyName>
    <Version>20.02.08</Version>
    <LangVersion>8</LangVersion>
  </PropertyGroup>

  <ItemGroup>
    <None Remove="Resources\byte\fashion_f_sm" />
    <None Remove="Resources\byte\fashion_f_sm_illegal" />
    <None Remove="Resources\byte\fashion_m_sm" />
    <None Remove="Resources\byte\fashion_m_sm_illegal" />
    <None Remove="Resources\byte\PGLDings-NormalRegular.ttf" />
  </ItemGroup>

  <ItemGroup>
    <EmbeddedResource Include="Resources\byte\fashion_f_sm" />
    <EmbeddedResource Include="Resources\byte\fashion_f_sm_illegal" />
    <EmbeddedResource Include="Resources\byte\fashion_m_sm" />
    <EmbeddedResource Include="Resources\byte\fashion_m_sm_illegal" />
    <EmbeddedResource Include="Resources\byte\PGLDings-NormalRegular.ttf" />
  </ItemGroup>

  <ItemGroup>
    <None Include="Resources\text\version.txt" />
  </ItemGroup>

  <ItemGroup Condition="$(TargetFramework.StartsWith('net4')) AND '$(Configuration)' == 'Release'">
    <PackageReference Include="Costura.Fody" Version="4.1.0" />
    <PackageReference Include="Fody" Version="6.0.5">
      <PrivateAssets>all</PrivateAssets>
      <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
    </PackageReference>
  </ItemGroup>

  <ItemGroup>
    <ProjectReference Include="..\PKHeX.Core\PKHeX.Core.csproj" />
    <ProjectReference Include="..\PKHeX.Drawing\PKHeX.Drawing.csproj" />
  </ItemGroup>

  <ItemGroup Condition="'$(TargetFramework)' == 'net46'">
    <Reference Include="System.Configuration" />
  </ItemGroup>

  <ItemGroup>
    <Compile Update="Controls\SAV Editor\PartyEditor.cs">
      <SubType>UserControl</SubType>
    </Compile>
    <Compile Update="Properties\Resources.Designer.cs">
      <DesignTime>True</DesignTime>
      <AutoGen>True</AutoGen>
      <DependentUpon>Resources.resx</DependentUpon>
    </Compile>
    <Compile Update="Properties\Settings.Designer.cs">
      <DesignTimeSharedInput>True</DesignTimeSharedInput>
      <AutoGen>True</AutoGen>
      <DependentUpon>Settings.settings</DependentUpon>
    </Compile>
    <Compile Update="Subforms\PKM Editors\TechRecordEditor.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Update="Subforms\Save Editors\Gen8\SAV_BlockDump8.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Update="Subforms\Save Editors\Gen8\SAV_Trainer8.cs">
      <SubType>Form</SubType>
    </Compile>
  </ItemGroup>

  <ItemGroup>
    <EmbeddedResource Update="Properties\Resources.resx">
      <Generator>PublicResXFileCodeGenerator</Generator>
      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
    </EmbeddedResource>
  </ItemGroup>

  <ItemGroup>
    <EmbeddedResource Update="Subforms\Save Editors\SAV_Inventory.resx">
      <DependentUpon>SAV_Inventory.cs</DependentUpon>
    </EmbeddedResource>
  </ItemGroup>

  <ItemGroup>
    <None Update="Properties\Settings.settings">
      <Generator>SettingsSingleFileGenerator</Generator>
      <LastGenOutput>Settings.Designer.cs</LastGenOutput>
    </None>
  </ItemGroup>

</Project>