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

    <Import Project="..\Apewer\Apewer.props" />

    <PropertyGroup>
        <NoWarn>CS0108;CS0612</NoWarn>
        <TargetFrameworks>net461;net40;net20;netcoreapp3.1</TargetFrameworks>
    </PropertyGroup>

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

    <!-- .NET Core 3.1 -->
    <PropertyGroup Condition="'$(TargetFramework)'=='netcoreapp3.1'">
        <!-- <UseWPF>true</UseWPF> -->
        <!-- <UseWindowsForms>true</UseWindowsForms> -->
    </PropertyGroup>
    <ItemGroup Condition="'$(TargetFramework)'=='netcoreapp3.1'">
        <!-- <FrameworkReference Include="Microsoft.AspNetCore.App" /> -->
        <FrameworkReference Include="Microsoft.WindowsDesktop.App" />
    </ItemGroup>

    <!-- .NET Framework 4.6.1 -->
    <ItemGroup Condition="'$(TargetFramework)'=='net461'">
        <Reference Include="CustomMarshalers" />
        <Reference Include="Microsoft.CSharp" />
        <Reference Include="PresentationCore" />
        <Reference Include="System.Core" />
        <Reference Include="System.Configuration" />
        <Reference Include="System.Design" />
        <Reference Include="System.Drawing" />
        <Reference Include="System.Management" />
        <Reference Include="System.Runtime.Caching" />
        <Reference Include="System.Security" />
        <Reference Include="System.Speech" />
        <Reference Include="System.Transactions" />
        <Reference Include="System.Web" />
        <Reference Include="System.Windows.Forms" />
        <Reference Include="WindowsBase" />
    </ItemGroup>

    <!-- .NET Framework 4.0 -->
    <ItemGroup Condition="'$(TargetFramework)'=='net40'">
        <Reference Include="CustomMarshalers" />
        <Reference Include="Microsoft.CSharp" />
        <Reference Include="PresentationCore" />
        <Reference Include="System.Core" />
        <Reference Include="System.Configuration" />
        <Reference Include="System.Design" />
        <Reference Include="System.Drawing" />
        <Reference Include="System.Management" />
        <Reference Include="System.Runtime.Caching" />
        <Reference Include="System.Security" />
        <Reference Include="System.Speech" />
        <Reference Include="System.Transactions" />
        <Reference Include="System.Web" />
        <Reference Include="System.Windows.Forms" />
        <Reference Include="WindowsBase" />
    </ItemGroup>

    <!-- .NET Framework 2.0 -->
    <ItemGroup Condition="'$(TargetFramework)'=='net20'">
        <Reference Include="CustomMarshalers" />
        <Reference Include="System.Configuration" />
        <Reference Include="System.Design" />
        <Reference Include="System.Management" />
        <Reference Include="System.Security" />
        <Reference Include="System.Transactions" />
        <Reference Include="System.Web" />
        <Reference Include="System.Windows.Forms" />
    </ItemGroup>
    <ItemGroup>
        <Compile Update="Tray\MainForm.cs">
            <SubType>Form</SubType>
        </Compile>
    </ItemGroup>

</Project>