PowerLauncher.csproj
1 <Project Sdk="Microsoft.NET.Sdk"> 2 <!-- Look at Directory.Build.props in root for common stuff as well --> 3 <Import Project="$(RepoRoot)src\Common.Dotnet.CsWinRT.props" /> 4 <Import Project="$(RepoRoot)src\Common.SelfContained.props" /> 5 6 <PropertyGroup> 7 <AssemblyTitle>PowerToys.Run</AssemblyTitle> 8 <OutputType>WinExe</OutputType> 9 <UseWPF>true</UseWPF> 10 <!-- For some users, it crashes in ExtractAssociatedIcon https://github.com/microsoft/PowerToys/issues/37254. Workaround suggested here https://github.com/dotnet/wpf/issues/10483 was to disable CETCompat --> 11 <CETCompat>false</CETCompat> 12 <UseWindowsForms>False</UseWindowsForms> 13 <StartupObject>PowerLauncher.App</StartupObject> 14 <ApplicationIcon>Assets\PowerLauncher\RunResource.ico</ApplicationIcon> 15 <ApplicationManifest>app.manifest</ApplicationManifest> 16 <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> 17 <AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath> 18 <AssetTargetFallback>uap10.0.19041</AssetTargetFallback> 19 <Description>PowerToys PowerLauncher</Description> 20 <AssemblyName>PowerToys.PowerLauncher</AssemblyName> 21 <OutputPath>$(RepoRoot)$(Platform)\$(Configuration)</OutputPath> 22 <GenerateSatelliteAssembliesForCore>true</GenerateSatelliteAssembliesForCore> 23 </PropertyGroup> 24 25 <ItemGroup> 26 <ApplicationDefinition Remove="App.xaml" /> 27 </ItemGroup> 28 29 <ItemGroup> 30 <None Remove="Assets\PowerLauncher\app_error.dark.png" /> 31 <None Remove="Assets\PowerLauncher\app_error.light.png" /> 32 <None Remove="Assets\PowerLauncher\RunResource.ico" /> 33 </ItemGroup> 34 35 <ItemGroup> 36 <Content Include="Assets\PowerLauncher\app_error.dark.png"> 37 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> 38 </Content> 39 <Content Include="Assets\PowerLauncher\app_error.light.png"> 40 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> 41 </Content> 42 </ItemGroup> 43 44 <ItemGroup> 45 <Page Include="App.xaml" /> 46 </ItemGroup> 47 48 <ItemGroup> 49 <PackageReference Include="Interop.Microsoft.Office.Interop.OneNote" /> 50 <PackageReference Include="Mages" /> 51 <PackageReference Include="LazyCache" /> 52 <PackageReference Include="Microsoft.Data.Sqlite" /> 53 <PackageReference Include="Microsoft.Toolkit.Uwp.Notifications" /> 54 <PackageReference Include="Microsoft.Xaml.Behaviors.Wpf" /> 55 <PackageReference Include="ScipBe.Common.Office.OneNote" /> 56 <PackageReference Include="System.Drawing.Common"> 57 <ExcludeAssets>runtime</ExcludeAssets> <!-- Should already be present on .net sdk runtime, so we avoid the conflicting runtime version from nuget --> 58 </PackageReference> 59 <PackageReference Include="System.Reactive" /> 60 <PackageReference Include="System.Data.OleDb" /> 61 <PackageReference Include="System.ServiceProcess.ServiceController" /> 62 <PackageReference Include="UnitsNet" /> 63 <!-- HACK: To make sure the version pulled in by Microsoft.Extensions.Hosting is current. --> 64 <PackageReference Include="System.Text.Json" /> 65 </ItemGroup> 66 67 <ItemGroup> 68 <ProjectReference Include="..\..\..\common\GPOWrapperProjection\GPOWrapperProjection.csproj" /> 69 <ProjectReference Include="..\..\..\common\interop\PowerToys.Interop.vcxproj" /> 70 <ProjectReference Include="..\..\..\common\ManagedCommon\ManagedCommon.csproj" /> 71 <ProjectReference Include="..\..\..\common\Common.UI\Common.UI.csproj" /> 72 <ProjectReference Include="..\..\..\settings-ui\Settings.UI.Library\Settings.UI.Library.csproj" /> 73 <ProjectReference Include="..\PowerLauncher.Telemetry\PowerLauncher.Telemetry.csproj" /> 74 <ProjectReference Include="..\Wox.Infrastructure\Wox.Infrastructure.csproj" /> 75 <ProjectReference Include="..\Wox.Plugin\Wox.Plugin.csproj" /> 76 </ItemGroup> 77 78 <ItemGroup> 79 <EmbeddedResource Update="Properties\Resources.resx"> 80 <Generator>PublicResXFileCodeGenerator</Generator> 81 <LastGenOutput>Resources.Designer.cs</LastGenOutput> 82 </EmbeddedResource> 83 </ItemGroup> 84 85 <ItemGroup> 86 <None Update="Assets\PowerLauncher\RunAsset.ico"> 87 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> 88 </None> 89 <None Update="Properties\Settings.settings"> 90 <Generator>SettingsSingleFileGenerator</Generator> 91 <LastGenOutput>Settings.Designer.cs</LastGenOutput> 92 </None> 93 </ItemGroup> 94 95 <ItemGroup> 96 <Page Update="Themes\HighContrastBlack.xaml"> 97 <SubType>Designer</SubType> 98 </Page> 99 <Page Update="Themes\HighContrastWhite.xaml"> 100 <SubType>Designer</SubType> 101 </Page> 102 <Page Update="Themes\HighContrast2.xaml"> 103 <SubType>Designer</SubType> 104 </Page> 105 <Page Update="Themes\HighContrast1.xaml"> 106 <SubType>Designer</SubType> 107 </Page> 108 <Page Update="Themes\Dark.xaml"> 109 <SubType>Designer</SubType> 110 </Page> 111 <Page Update="Themes\Light.xaml"> 112 <SubType>Designer</SubType> 113 </Page> 114 </ItemGroup> 115 <ItemGroup> 116 <Resource Include="Assets\PowerLauncher\RunResource.ico" /> 117 </ItemGroup> 118 <ItemGroup> 119 <Compile Update="Properties\Resources.Designer.cs"> 120 <DesignTime>True</DesignTime> 121 <AutoGen>True</AutoGen> 122 <DependentUpon>Resources.resx</DependentUpon> 123 </Compile> 124 </ItemGroup> 125 </Project>