/
githubmirror
/
PowerToys
Обзор
Документация
Войти
/
githubmirror
/
PowerToys
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/modules/powerdisplay/PowerDisplay/PowerDisplay.csproj
115 строк
6 KB
moooyo
feat(powerdisplay): add CLI for monitor control (#48632)
16 июл 2026, 18:08
Не верифицирован
16 июл 2026, 18:08
5c9c93d
Код
Авторство
О чём код?
<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> <OutputType>WinExe</OutputType> <RootNamespace>PowerDisplay</RootNamespace> <ApplicationManifest>app.manifest</ApplicationManifest> <ApplicationIcon>Assets\PowerDisplay\PowerDisplay.ico</ApplicationIcon> <Platforms>x64;ARM64</Platforms> <UseWinUI>true</UseWinUI> <EnableMsixTooling>true</EnableMsixTooling> <EnablePreviewMsixTooling>true</EnablePreviewMsixTooling> <WindowsPackageType>None</WindowsPackageType> <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> <AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath> <WindowsAppSDKSelfContained>true</WindowsAppSDKSelfContained> <OutputPath>..\..\..\..\$(Platform)\$(Configuration)\WinUI3Apps</OutputPath> <AssemblyName>PowerToys.PowerDisplay</AssemblyName> <!-- 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.PowerDisplay.pri</ProjectPriFileName> <AllowUnsafeBlocks>true</AllowUnsafeBlocks> <Nullable>enable</Nullable> <LangVersion>preview</LangVersion> <!-- Disable XAML-generated Main method, use custom Program.cs --> <DefineConstants>DISABLE_XAML_GENERATED_MAIN</DefineConstants> </PropertyGroup> <!-- Native AOT Configuration --> <PropertyGroup> <PublishSingleFile>false</PublishSingleFile> <DisableRuntimeMarshalling>false</DisableRuntimeMarshalling> <PublishAot>true</PublishAot> <TrimmerSingleWarn>false</TrimmerSingleWarn> <SuppressTrimAnalysisWarnings>false</SuppressTrimAnalysisWarnings> </PropertyGroup> <!-- 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> <!-- Hide build log files from Solution Explorer --> <None Remove="*.log" /> <None Remove="*.binlog" /> </ItemGroup> <ItemGroup> <!-- Add WindowsDesktop.App framework reference to align Microsoft.VisualBasic.dll version with other projects that use UseWPF/UseWindowsForms. This does NOT enable WPF/WinForms, it only ensures consistent runtime DLL versions across all WinUI3Apps. --> <FrameworkReference Include="Microsoft.WindowsDesktop.App" /> </ItemGroup> <ItemGroup> <Page Remove="PowerDisplayXAML\App.xaml" /> </ItemGroup> <ItemGroup> <ApplicationDefinition Include="PowerDisplayXAML\App.xaml" /> </ItemGroup> <ItemGroup> <Folder Include="PowerDisplayXAML\" /> </ItemGroup> <ItemGroup> <PackageReference Include="Microsoft.WindowsAppSDK" /> <PackageReference Include="Microsoft.Windows.SDK.BuildTools" /> <PackageReference Include="WmiLight" /> <PackageReference Include="WinUIEx" /> <PackageReference Include="CommunityToolkit.WinUI.Controls.SettingsControls" /> <PackageReference Include="CommunityToolkit.WinUI.Animations" /> <PackageReference Include="CommunityToolkit.WinUI.Extensions" /> <PackageReference Include="CommunityToolkit.WinUI.Controls.Segmented" /> <PackageReference Include="CommunityToolkit.WinUI.Controls.Sizers" /> <PackageReference Include="CommunityToolkit.WinUI.Converters" /> <PackageReference Include="CommunityToolkit.Mvvm" /> <PackageReference Include="Microsoft.Windows.CsWin32"> <PrivateAssets>all</PrivateAssets> </PackageReference> <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> <!-- Removed Common.UI dependency - SettingsDeepLink is now implemented locally --> <ProjectReference Include="..\..\..\common\GPOWrapper\GPOWrapper.vcxproj" /> <ProjectReference Include="..\..\..\common\ManagedCommon\ManagedCommon.csproj" /> <ProjectReference Include="..\..\..\common\Common.UI.Controls\Common.UI.Controls.csproj" /> <!-- Removed ManagedCsWin32 - using CsWin32 directly for TrayIcon APIs --> <ProjectReference Include="..\..\..\common\interop\PowerToys.Interop.vcxproj" /> <ProjectReference Include="..\..\..\settings-ui\Settings.UI.Library\Settings.UI.Library.csproj" /> <ProjectReference Include="..\PowerDisplay.Contracts\PowerDisplay.Contracts.csproj" /> <ProjectReference Include="..\PowerDisplay.Ipc\PowerDisplay.Ipc.csproj" /> <ProjectReference Include="..\PowerDisplay.Lib\PowerDisplay.Lib.csproj" /> <ProjectReference Include="..\PowerDisplay.Models\PowerDisplay.Models.csproj" /> </ItemGroup> <!-- Copy Assets folder to output directory --> <ItemGroup> <Content Include="Assets\PowerDisplay\*"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </Content> </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> </Project>