/
githubmirror
/
PowerToys
Обзор
Документация
Войти
/
githubmirror
/
PowerToys
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/modules/cmdpal/ext/SamplePagesExtension/SamplePagesExtension.csproj
106 строк
5 KB
Mike Griese
CmdPal: Use RepoRoot instead of SolutionDir (#49643)
04 авг 2026, 17:17
Не верифицирован
04 авг 2026, 17:17
d04ebff
Код
Авторство
О чём код?
<Project Sdk="Microsoft.NET.Sdk"> <Import Project="$(RepoRoot)src\Common.Dotnet.CsWinRT.props" /> <Import Project="$(RepoRoot)src\Common.Dotnet.AotCompatibility.props" /> <PropertyGroup> <OutputType>WinExe</OutputType> <RootNamespace>SamplePagesExtension</RootNamespace> <ApplicationManifest>app.manifest</ApplicationManifest> <PublishProfile>win-$(Platform).pubxml</PublishProfile> <UseWinUI>false</UseWinUI> <EnableMsixTooling>true</EnableMsixTooling> <OutputPath>$(RepoRoot)$(Platform)\$(Configuration)\WinUI3Apps\CmdPalExtensions\$(RootNamespace)</OutputPath> <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> <AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath> <GenerateAppxPackageOnBuild>true</GenerateAppxPackageOnBuild> </PropertyGroup> <ItemGroup> <Content Include="Assets\SplashScreen.scale-200.png" /> <Content Include="Assets\LockScreenLogo.scale-200.png" /> <Content Include="Assets\Square150x150Logo.scale-200.png" /> <Content Include="Assets\Square44x44Logo.scale-200.png" /> <Content Include="Assets\Square44x44Logo.targetsize-24_altform-unplated.png" /> <Content Include="Assets\StoreLogo.png" /> <Content Include="Assets\Wide310x150Logo.scale-200.png" /> </ItemGroup> <ItemGroup> <Manifest Include="$(ApplicationManifest)" /> </ItemGroup> <ItemGroup> <ProjectReference Include="..\..\extensionsdk\Microsoft.CommandPalette.Extensions.Toolkit\Microsoft.CommandPalette.Extensions.Toolkit.csproj" /> </ItemGroup> <ItemGroup> <PackageReference Include="Shmuelie.WinRTServer" /> <PackageReference Include="Microsoft.WindowsAppSDK" /> <PackageReference Include="Microsoft.Windows.CsWin32"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference> </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> <Folder Include="Commands\" /> <Folder Include="Data\" /> </ItemGroup> <!-- Defining the "HasPackageAndPublishMenuAddedByProject" property here allows the Solution Explorer "Package and Publish" context menu entry to be enabled for this project even if the Windows App SDK Nuget package has not yet been restored. --> <PropertyGroup Condition="'$(DisableHasPackageAndPublishMenuAddedByProject)'!='true' and '$(EnableMsixTooling)'=='true'"> <HasPackageAndPublishMenu>true</HasPackageAndPublishMenu> </PropertyGroup> <!-- Only enable Native AOT for Release builds to avoid System.Private.CoreLib.dll version conflicts during development --> <PropertyGroup Condition="'$(Configuration)' == 'Release'"> <PublishTrimmed>true</PublishTrimmed> <PublishSingleFile>true</PublishSingleFile> <IsAotCompatible>true</IsAotCompatible> <CsWinRTAotOptimizerEnabled>true</CsWinRTAotOptimizerEnabled> <CsWinRTAotWarningLevel>2</CsWinRTAotWarningLevel> <!-- Suppress DynamicallyAccessedMemberTypes.PublicParameterlessConstructor in fallback code path of Windows SDK projection --> <WarningsNotAsErrors>IL2081;IL2104;$(WarningsNotAsErrors)</WarningsNotAsErrors> <!-- When publishing trimmed, make sure to treat trimming warnings as build errors --> <ILLinkTreatWarningsAsErrors>true</ILLinkTreatWarningsAsErrors> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)'=='Debug'"> <!-- In Debug builds, trimming is disabled by default, but all the trim & AOT warnings are enabled. This gives debug builds a tighter inner loop, while at least warning about future trim violations --> <PublishTrimmed>false</PublishTrimmed> <EnableTrimAnalyzer>true</EnableTrimAnalyzer> <EnableSingleFileAnalyzer>true</EnableSingleFileAnalyzer> <EnableAotAnalyzer>true</EnableAotAnalyzer> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)'!='Debug'"> <!-- In Release builds, trimming is enabled by default. feel free to disable this if needed --> <PublishTrimmed>true</PublishTrimmed> </PropertyGroup> <!-- For Debug builds, use standard JIT compilation --> <PropertyGroup Condition="'$(Configuration)' == 'Debug'"> <PublishTrimmed>false</PublishTrimmed> <PublishSingleFile>false</PublishSingleFile> <PublishAot>false</PublishAot> </PropertyGroup> </Project>