/
githubmirror
/
PowerToys
Обзор
Документация
Войти
/
githubmirror
/
PowerToys
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/modules/MouseWithoutBorders/App/Helper/MouseWithoutBordersHelper.csproj
77 строк
3 KB
Boliang Zhang
Remove unused dependencies and shrink installer size (#47233)
15 май 2026, 12:15
Не верифицирован
15 май 2026, 12:15
e932fe6
Код
Авторство
О чём код?
<Project Sdk="Microsoft.NET.Sdk"> <!-- Look at Directory.Build.props in root for common stuff as well --> <Import Project="$(RepoRoot)src\Common.Dotnet.CsWinRT.props" /> <Import Project="$(RepoRoot)src\Common.SelfContained.props" /> <PropertyGroup> <OutputType>WinExe</OutputType> <UseWindowsForms>true</UseWindowsForms> <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> <AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath> <AssemblyName>PowerToys.MouseWithoutBordersHelper</AssemblyName> <DisableWinExeOutputInference>true</DisableWinExeOutputInference> <ImportWindowsDesktopTargets>true</ImportWindowsDesktopTargets> <OutputPath>$(RepoRoot)$(Platform)\$(Configuration)</OutputPath> <AllowUnsafeBlocks>true</AllowUnsafeBlocks> <ApplicationIcon>..\Logo.ico</ApplicationIcon> <NoWin32Manifest>true</NoWin32Manifest> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)' == 'Debug'"> <DefineConstants>MM_HELPER;TRACE;DEBUG;SHOW_ON_WINLOGON CODE_ANALYSIS CUSTOMIZE_LOGON_SCREEN</DefineConstants> <UseVSHostingProcess>false</UseVSHostingProcess> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)' == 'Release'"> <DefineConstants>MM_HELPER;TRACE;SHOW_ON_WINLOGON CODE_ANALYSIS CUSTOMIZE_LOGON_SCREEN</DefineConstants> <UseVSHostingProcess>false</UseVSHostingProcess> <NoWarn /> </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> <Compile Remove="Resources\**" /> <Compile Remove="Service\**" /> <EmbeddedResource Remove="Resources\**" /> <EmbeddedResource Remove="Service\**" /> <ExcludeFromStyleCop Remove="Service\**" /> <None Remove="Resources\**" /> <None Remove="Service\**" /> </ItemGroup> <ItemGroup> <Compile Include="..\Class\IClipboardHelper.cs"> <Link>IClipboardHelper.cs</Link> </Compile> <Compile Include="..\Core\IpcChannelHelper.cs"> <Link>IpcChannelHelper.cs</Link> </Compile> </ItemGroup> <ItemGroup> <None Update="MouseWithoutBordersHelper.exe.manifest"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> </ItemGroup> <ItemGroup> <!-- Including MessagePack to force version, since it's used by StreamJsonRpc but contains vulnerabilities. After StreamJsonRpc updates the version of MessagePack, we can upgrade StreamJsonRpc instead. --> <PackageReference Include="MessagePack" /> <!-- HACK: To align Microsoft.Bcl.AsyncInterfaces.dll version with Advanced Paste version (from the Semantic Kernel dependency). --> <PackageReference Include="Microsoft.Bcl.AsyncInterfaces" /> <PackageReference Include="Microsoft.Windows.Compatibility" /> <PackageReference Include="StreamJsonRpc" /> </ItemGroup> <ItemGroup> <ProjectReference Include="..\..\..\..\common\GPOWrapper\GPOWrapper.vcxproj" /> <ProjectReference Include="..\..\..\..\settings-ui\Settings.UI.Library\Settings.UI.Library.csproj" /> </ItemGroup> <PropertyGroup> <AllowUnsafeBlocks>True</AllowUnsafeBlocks> </PropertyGroup> </Project>