2022-04-19 22:00:28 +02:00
<Project Sdk= "Microsoft.NET.Sdk" >
2024-08-05 06:32:05 -07:00
2022-04-19 22:00:28 +02:00
<PropertyGroup >
<OutputType > WinExe</OutputType>
2023-11-22 12:46:59 -05:00
<TargetFramework > net8.0-windows10.0.20348.0</TargetFramework>
2023-07-20 00:12:46 +01:00
<TargetPlatformMinVersion > 10.0.19041.0</TargetPlatformMinVersion>
<SupportedOSPlatformVersion > 10.0.19041.0</SupportedOSPlatformVersion>
2022-04-19 22:00:28 +02:00
<RootNamespace > Microsoft.PowerToys.Settings.UI</RootNamespace>
<ApplicationManifest > app.manifest</ApplicationManifest>
2023-11-22 12:46:59 -05:00
<RuntimeIdentifiers > win-x64;win-arm64</RuntimeIdentifiers>
2022-04-19 22:00:28 +02:00
<UseWinUI > true</UseWinUI>
<EnablePreviewMsixTooling > true</EnablePreviewMsixTooling>
<WindowsPackageType > None</WindowsPackageType>
<AppendTargetFrameworkToOutputPath > false</AppendTargetFrameworkToOutputPath>
<AppendRuntimeIdentifierToOutputPath > false</AppendRuntimeIdentifierToOutputPath>
2023-07-20 00:12:46 +01:00
<ApplicationIcon > Assets\Settings\icon.ico</ApplicationIcon>
2022-06-07 09:58:32 +01:00
<WindowsAppSDKSelfContained > true</WindowsAppSDKSelfContained>
2022-04-20 21:24:36 +01:00
<!-- OutputPath looks like this because it has to be called both by settings and publish.cmd -->
2023-07-20 00:12:46 +01:00
<OutputPath > ..\..\..\$(Platform)\$(Configuration)\WinUI3Apps</OutputPath>
2022-12-14 13:37:23 +01:00
<SelfContained > true</SelfContained>
2023-07-20 00:12:46 +01:00
<!-- MRT from windows app sdk will search for a pri file with the same name of the module before defaulting to resources.pri -->
<ProjectPriFileName > PowerToys.Settings.pri</ProjectPriFileName>
2022-12-14 13:37:23 +01:00
</PropertyGroup>
2024-05-09 10:32:03 -04:00
<ItemGroup >
<None Remove= "Assets\Settings\Modules\APDialog.dark.png" />
<None Remove= "Assets\Settings\Modules\APDialog.light.png" />
</ItemGroup>
2022-12-14 13:37:23 +01:00
2023-07-20 00:12:46 +01:00
<ItemGroup >
<Page Remove= "SettingsXAML\App.xaml" />
</ItemGroup>
<ItemGroup >
<ApplicationDefinition Include= "SettingsXAML\App.xaml" />
</ItemGroup>
2022-12-14 13:37:23 +01:00
<!-- SelfContained=true requires RuntimeIdentifier to be set -->
<PropertyGroup Condition= "'$(Platform)'=='x64'" >
2023-11-22 12:46:59 -05:00
<RuntimeIdentifier > win-x64</RuntimeIdentifier>
2022-12-14 13:37:23 +01:00
</PropertyGroup>
<PropertyGroup Condition= "'$(Platform)'=='ARM64'" >
2023-11-22 12:46:59 -05:00
<RuntimeIdentifier > win-arm64</RuntimeIdentifier>
2022-04-19 22:00:28 +02:00
</PropertyGroup>
2022-04-20 11:21:46 -04:00
<PropertyGroup Condition= "'$(Configuration)'=='Debug'" >
2022-04-19 22:00:28 +02:00
<NoWarn > </NoWarn>
<TreatWarningsAsErrors > True</TreatWarningsAsErrors>
<WarningsNotAsErrors > CA1720</WarningsNotAsErrors>
<Optimize > False</Optimize>
<DebugType > full</DebugType>
<DebugSymbols > true</DebugSymbols>
<DefineConstants > DEBUG;TRACE</DefineConstants>
</PropertyGroup>
2022-04-20 11:21:46 -04:00
<PropertyGroup Condition= "'$(Configuration)'=='Release'" >
2022-04-19 22:00:28 +02:00
<NoWarn > </NoWarn>
<TreatWarningsAsErrors > True</TreatWarningsAsErrors>
<WarningsNotAsErrors > CA1720</WarningsNotAsErrors>
<Optimize > true</Optimize>
</PropertyGroup>
2024-01-03 07:43:42 -08:00
2022-10-26 14:02:31 +01:00
<!-- See https://learn.microsoft.com/windows/apps/develop/platform/csharp - winrt/net - projection - from - cppwinrt - component for more info -->
<PropertyGroup >
<CsWinRTIncludes > PowerToys.GPOWrapper</CsWinRTIncludes>
<CsWinRTGeneratedFilesDir > $(OutDir)</CsWinRTGeneratedFilesDir>
<ErrorOnDuplicatePublishOutputFiles > false</ErrorOnDuplicatePublishOutputFiles>
</PropertyGroup>
2023-01-31 00:00:11 +01:00
<ItemGroup >
2023-07-20 00:12:46 +01:00
<Content Include= "Assets\Settings\SplashScreen.scale-200.png" />
<Content Include= "Assets\Settings\LockScreenLogo.scale-200.png" />
<Content Include= "Assets\Settings\Square150x150Logo.scale-200.png" />
<Content Include= "Assets\Settings\Square44x44Logo.scale-200.png" />
<Content Include= "Assets\Settings\Square44x44Logo.targetsize-24_altform-unplated.png" />
<Content Include= "Assets\Settings\StoreLogo.png" />
<Content Include= "Assets\Settings\Wide310x150Logo.scale-200.png" />
2022-04-19 22:00:28 +02:00
</ItemGroup>
<ItemGroup >
2023-09-14 18:41:31 +02:00
<PackageReference Include= "CommunityToolkit.WinUI.Controls.SettingsControls" />
<PackageReference Include= "CommunityToolkit.WinUI.Controls.Primitives" />
<PackageReference Include= "CommunityToolkit.WinUI.Animations" />
<PackageReference Include= "CommunityToolkit.WinUI.Extensions" />
<PackageReference Include= "CommunityToolkit.WinUI.Converters" />
<PackageReference Include= "CommunityToolkit.WinUI.UI.Controls.Markdown" />
2023-02-13 12:10:33 -05:00
<PackageReference Include= "Microsoft.Windows.CsWinRT" />
<PackageReference Include= "WinUIEx" />
<PackageReference Include= "Microsoft.WindowsAppSDK" />
<PackageReference Include= "Microsoft.Windows.SDK.BuildTools" />
<PackageReference Include= "Microsoft.Xaml.Behaviors.WinUI.Managed" />
2023-05-15 23:32:26 +01:00
<PackageReference Include= "StreamJsonRpc" />
2023-07-20 00:12:46 +01:00
<!-- HACK: Microsoft.Extensions.Hosting is referenced, even if it is not used, to force dll versions to be the same as in other projects. Really only needed since the Experimentation APIs that are added in CI reference some net standard 2.0 assemblies. -->
<PackageReference Include= "Microsoft.Extensions.Hosting" />
2024-07-16 16:17:53 +01:00
<!-- HACK: To make sure the version pulled in by Microsoft.Extensions.Hosting is current. -->
<PackageReference Include= "System.Text.Json" />
2022-04-19 22:00:28 +02:00
<Manifest Include= "$(ApplicationManifest)" />
</ItemGroup>
<!-- Defining the "Msix" ProjectCapability here allows the Single - project MSIX Packaging
Tools extension to be activated for this project even if the Windows App SDK Nuget
package has not yet been restored -->
2024-01-03 07:43:42 -08:00
2022-04-19 22:00:28 +02:00
<ItemGroup Condition= "'$(DisableMsixProjectCapabilityAddedByProject)'!='true' and '$(EnablePreviewMsixTooling)'=='true'" >
<ProjectCapability Include= "Msix" />
</ItemGroup>
2024-01-03 07:43:42 -08:00
2022-04-19 22:00:28 +02:00
<ItemGroup >
2023-07-20 00:12:46 +01:00
<!-- HACK: Common.UI is referenced, even if it is not used, to force dll versions to be the same as in other projects that use it. It's still unclear why this is the case, but this is need for flattening the install directory. -->
<ProjectReference Include= "..\..\common\Common.UI\Common.UI.csproj" />
2023-02-14 18:38:53 -08:00
<ProjectReference Include= "..\..\common\AllExperiments\AllExperiments.csproj" />
2022-10-26 14:02:31 +01:00
<ProjectReference Include= "..\..\common\GPOWrapper\GPOWrapper.vcxproj" />
2023-03-21 17:43:15 +08:00
<ProjectReference Include= "..\..\common\interop\PowerToys.Interop.vcxproj" />
2022-04-19 22:00:28 +02:00
<ProjectReference Include= "..\..\common\ManagedCommon\ManagedCommon.csproj" />
<ProjectReference Include= "..\..\common\ManagedTelemetry\Telemetry\ManagedTelemetry.csproj" />
<ProjectReference Include= "..\Settings.UI.Library\Settings.UI.Library.csproj" />
</ItemGroup>
2024-01-03 07:43:42 -08:00
2023-05-15 23:32:26 +01:00
<PropertyGroup >
<!-- TODO: fix issues and reenable -->
<!-- These are caused by streamjsonrpc dependency on Microsoft.VisualStudio.Threading.Analyzers -->
<!-- We might want to add that to the project and fix the issues as well -->
<NoWarn > VSTHRD002;VSTHRD110;VSTHRD100;VSTHRD200;VSTHRD101</NoWarn>
</PropertyGroup>
2024-01-05 09:26:49 +00:00
<ItemGroup >
<None Update= "Assets\Settings\icon.ico" >
<CopyToOutputDirectory > Always</CopyToOutputDirectory>
</None>
</ItemGroup>
2024-01-03 07:43:42 -08:00
2024-01-05 09:26:49 +00:00
<ItemGroup >
<None Update= "Assets\Settings\Scripts\CheckCmdNotFoundRequirements.ps1" >
<CopyToOutputDirectory > Always</CopyToOutputDirectory>
</None>
<None Update= "Assets\Settings\Scripts\InstallWinGetClientModule.ps1" >
<CopyToOutputDirectory > Always</CopyToOutputDirectory>
</None>
<None Update= "Assets\Settings\Scripts\InstallPowerShell7.ps1" >
<CopyToOutputDirectory > Always</CopyToOutputDirectory>
</None>
<None Update= "Assets\Settings\Scripts\EnableModule.ps1" >
<CopyToOutputDirectory > Always</CopyToOutputDirectory>
</None>
<None Update= "Assets\Settings\Scripts\DisableModule.ps1" >
<CopyToOutputDirectory > Always</CopyToOutputDirectory>
</None>
</ItemGroup>
2024-01-03 07:43:42 -08:00
2023-10-20 16:28:07 +02:00
</Project>