<Project Sdk="Microsoft.NET.Sdk">
	<Import Project="..\..\..\Version.props" />
	<PropertyGroup>
		<OutputType>WinExe</OutputType>
		<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>
		<Nullable>disable</Nullable>
		<UseWPF>true</UseWPF>
		<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
		<ApplicationIcon>icon.ico</ApplicationIcon>
		<AssemblyName>PowerToys.PowerAccent</AssemblyName>
		<XamlDebuggingInformation>True</XamlDebuggingInformation>
		<StartupObject>PowerAccent.UI.Program</StartupObject>
		<OutputPath>..\..\..\..\$(Platform)\$(Configuration)</OutputPath>
		<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
		<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
		<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>

	<ItemGroup>
		<Resource Include="icon.ico">
			<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
		</Resource>
	</ItemGroup>

	<ItemGroup>
		<PackageReference Include="Microsoft.Windows.CsWinRT" />
		<PackageReference Include="WPF-UI" />
	</ItemGroup>

	<ItemGroup>
		<ProjectReference Include="..\..\..\common\Common.UI\Common.UI.csproj" />
		<ProjectReference Include="..\..\..\common\interop\PowerToys.Interop.vcxproj" />
		<ProjectReference Include="..\PowerAccent.Core\PowerAccent.Core.csproj" />
		<ProjectReference Include="..\PowerAccentKeyboardService\PowerAccentKeyboardService.vcxproj" />
	</ItemGroup>
</Project>
