<Project Sdk="Microsoft.NET.Sdk">
    <Import Project="..\..\..\Version.props" />
    <PropertyGroup>
        <TargetFramework>net8.0-windows10.0.20348.0</TargetFramework>
        <TargetPlatformMinVersion>10.0.19041.0</TargetPlatformMinVersion>
        <SupportedOSPlatformVersion>10.0.19041.0</SupportedOSPlatformVersion>
        <RuntimeIdentifiers>win-x64;win-arm64</RuntimeIdentifiers>
        <ImplicitUsings>enable</ImplicitUsings>
        <Nullable>disable</Nullable>
        <AllowUnsafeBlocks>True</AllowUnsafeBlocks>
        <UseWPF>true</UseWPF>
	    <UseWindowsForms>true</UseWindowsForms>
        <SelfContained>true</SelfContained>
    </PropertyGroup>

    <!-- SelfContained=true requires RuntimeIdentifier to be set -->
    <PropertyGroup Condition="'$(Platform)'=='x64'">
        <RuntimeIdentifier>win-x64</RuntimeIdentifier>
    </PropertyGroup>
    <PropertyGroup Condition="'$(Platform)'=='ARM64'">
        <RuntimeIdentifier>win-arm64</RuntimeIdentifier>
    </PropertyGroup>

    <PropertyGroup>
        <CsWinRTIncludes>PowerToys.GPOWrapper;PowerToys.PowerAccentKeyboardService</CsWinRTIncludes>
        <CsWinRTGeneratedFilesDir>$(OutDir)</CsWinRTGeneratedFilesDir>
        <ErrorOnDuplicatePublishOutputFiles>false</ErrorOnDuplicatePublishOutputFiles>
    </PropertyGroup>

    <ItemGroup>
        <PackageReference Include="Microsoft.Windows.CsWinRT" />
        <PackageReference Include="System.Configuration.ConfigurationManager" />
        <PackageReference Include="UnicodeInformation" />
        <PackageReference Include="Vanara.PInvoke.User32" />
        <PackageReference Include="Vanara.PInvoke.Shell32" />
</ItemGroup>

    <ItemGroup>
        <ProjectReference Include="..\..\..\common\GPOWrapper\GPOWrapper.vcxproj" />
        <ProjectReference Include="..\..\..\common\interop\PowerToys.Interop.vcxproj" />
        <ProjectReference Include="..\..\..\settings-ui\Settings.UI.Library\Settings.UI.Library.csproj" />
        <ProjectReference Include="..\PowerAccentKeyboardService\PowerAccentKeyboardService.vcxproj" />
    </ItemGroup>

    

</Project>
