mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-15 19:27:56 +01:00
124 lines
5.4 KiB
XML
124 lines
5.4 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
<!-- Look at Directory.Build.props in root for common stuff as well -->
|
|
<Import Project="..\..\..\Common.Dotnet.CsWinRT.props" />
|
|
<Import Project="..\..\..\Common.SelfContained.props" />
|
|
<Import Project="..\..\..\Common.Dotnet.AotCompatibility.props" />
|
|
|
|
<PropertyGroup>
|
|
<AssemblyName>PowerToys.Peek.UI</AssemblyName>
|
|
<AssemblyTitle>PowerToys.Peek.UI</AssemblyTitle>
|
|
<AssemblyDescription>PowerToys Peek UI</AssemblyDescription>
|
|
<RootNamespace>Peek.UI</RootNamespace>
|
|
<OutputType>WinExe</OutputType>
|
|
<OutputPath>..\..\..\..\$(Platform)\$(Configuration)\WinUI3Apps</OutputPath>
|
|
<ApplicationManifest>app.manifest</ApplicationManifest>
|
|
<UseWinUI>true</UseWinUI>
|
|
<Platforms>x64;ARM64</Platforms>
|
|
<GenerateSatelliteAssembliesForCore>true</GenerateSatelliteAssembliesForCore>
|
|
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
|
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
|
|
<EnablePreviewMsixTooling>true</EnablePreviewMsixTooling>
|
|
<WindowsPackageType>None</WindowsPackageType>
|
|
<WindowsAppSDKSelfContained>true</WindowsAppSDKSelfContained>
|
|
<Nullable>Enable</Nullable>
|
|
<ApplicationIcon>Assets\Peek\Icon.ico</ApplicationIcon>
|
|
<!-- 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.Peek.UI.pri</ProjectPriFileName>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<Page Remove="PeekXAML\App.xaml" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<ApplicationDefinition Include="PeekXAML\App.xaml" />
|
|
</ItemGroup>
|
|
|
|
<!-- 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>
|
|
|
|
<ItemGroup>
|
|
<Content Include="Assets\Peek\Icon.ico" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<None Remove="Assets\Peek\AppList.scale-100.png" />
|
|
<None Remove="Assets\Peek\AppList.scale-125.png" />
|
|
<None Remove="Assets\Peek\AppList.scale-150.png" />
|
|
<None Remove="Assets\Peek\AppList.scale-200.png" />
|
|
<None Remove="Assets\Peek\AppList.scale-400.png" />
|
|
<None Remove="Views\TitleBar.xaml" />
|
|
<None Remove="Views\UnsupportedFile.xaml" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<COMReference Include="Shell32">
|
|
<VersionMinor>0</VersionMinor>
|
|
<VersionMajor>1</VersionMajor>
|
|
<Guid>50a7e9b0-70ef-11d1-b75a-00a0c90564fe</Guid>
|
|
<Lcid>0</Lcid>
|
|
<WrapperTool>tlbimp</WrapperTool>
|
|
<Isolated>false</Isolated>
|
|
<EmbedInteropTypes>true</EmbedInteropTypes>
|
|
</COMReference>
|
|
<COMReference Include="SHDocVw">
|
|
<VersionMinor>1</VersionMinor>
|
|
<VersionMajor>1</VersionMajor>
|
|
<Guid>eab22ac0-30c1-11cf-a7eb-0000c05bae0b</Guid>
|
|
<Lcid>0</Lcid>
|
|
<WrapperTool>tlbimp</WrapperTool>
|
|
<Isolated>false</Isolated>
|
|
<EmbedInteropTypes>true</EmbedInteropTypes>
|
|
</COMReference>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Microsoft.Extensions.Hosting" />
|
|
<PackageReference Include="Microsoft.Windows.CsWin32">
|
|
<PrivateAssets>all</PrivateAssets>
|
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
</PackageReference>
|
|
<PackageReference Include="CommunityToolkit.Mvvm" />
|
|
<PackageReference Include="Microsoft.WindowsAppSDK" />
|
|
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" />
|
|
<PackageReference Include="WinUIEx" />
|
|
<!-- HACK: To make sure the version pulled in by Microsoft.Extensions.Hosting is current. -->
|
|
<PackageReference Include="System.Text.Json" />
|
|
<!-- This line forces the WebView2 version used by Windows App SDK to be the one we expect from Directory.Packages.props . -->
|
|
<PackageReference Include="Microsoft.Web.WebView2" />
|
|
<!-- HACK: CmdPal uses CommunityToolkit.Common directly. Align the version. -->
|
|
<PackageReference Include="CommunityToolkit.Common" />
|
|
<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.
|
|
-->
|
|
<ItemGroup Condition="'$(DisableMsixProjectCapabilityAddedByProject)'!='true' and '$(EnableMsixTooling)'=='true'">
|
|
<ProjectCapability Include="Msix" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\..\..\common\GPOWrapper\GPOWrapper.vcxproj" />
|
|
<ProjectReference Include="..\..\..\common\interop\PowerToys.Interop.vcxproj" />
|
|
<ProjectReference Include="..\..\..\common\ManagedCommon\ManagedCommon.csproj" />
|
|
<ProjectReference Include="..\Peek.Common\Peek.Common.csproj" />
|
|
<ProjectReference Include="..\Peek.FilePreviewer\Peek.FilePreviewer.csproj" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<Resource Include="Assets\Peek\Icon.ico" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<Page Update="Views\UnsupportedFile.xaml">
|
|
<Generator>MSBuild:Compile</Generator>
|
|
</Page>
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<Page Update="Views\TitleBar.xaml">
|
|
<Generator>MSBuild:Compile</Generator>
|
|
</Page>
|
|
</ItemGroup>
|
|
</Project>
|