KeyboardManagerEditorUI.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 <OutputType>WinExe</OutputType> 8 <RootNamespace>KeyboardManagerEditorUI</RootNamespace> 9 <ApplicationManifest>app.manifest</ApplicationManifest> 10 <UseWinUI>true</UseWinUI> 11 <EnableMsixTooling>true</EnableMsixTooling> 12 <Nullable>enable</Nullable> 13 <WindowsPackageType>None</WindowsPackageType> 14 <AllowUnsafeBlocks>True</AllowUnsafeBlocks> 15 <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> 16 <AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath> 17 <AssemblyName>PowerToys.KeyboardManagerEditorUI</AssemblyName> 18 <OutputPath>$(RepoRoot)$(Platform)\$(Configuration)\$(MSBuildProjectName)</OutputPath> 19 </PropertyGroup> 20 21 <ItemGroup> 22 <Manifest Include="$(ApplicationManifest)" /> 23 </ItemGroup> 24 25 <!-- 26 Defining the "Msix" ProjectCapability here allows the Single-project MSIX Packaging 27 Tools extension to be activated for this project even if the Windows App SDK Nuget 28 package has not yet been restored. 29 --> 30 <ItemGroup Condition="'$(DisableMsixProjectCapabilityAddedByProject)'!='true' and '$(EnableMsixTooling)'=='true'"> 31 <ProjectCapability Include="Msix" /> 32 </ItemGroup> 33 <ItemGroup> 34 <PackageReference Include="Microsoft.Windows.SDK.BuildTools" /> 35 <PackageReference Include="Microsoft.WindowsAppSDK" /> 36 <!-- This line forces the WebView2 version used by Windows App SDK to be the one we expect from Directory.Packages.props . --> 37 <PackageReference Include="Microsoft.Web.WebView2" /> 38 </ItemGroup> 39 <ItemGroup> 40 <ProjectReference Include="..\..\..\common\ManagedCommon\ManagedCommon.csproj" /> 41 <ProjectReference Include="..\..\..\settings-ui\Settings.UI.Library\Settings.UI.Library.csproj" /> 42 <ProjectReference Include="..\..\..\common\Common.UI\Common.UI.csproj" /> 43 </ItemGroup> 44 <ItemGroup> 45 <Folder Include="Assets\" /> 46 </ItemGroup> 47 48 <!-- 49 Defining the "HasPackageAndPublishMenuAddedByProject" property here allows the Solution 50 Explorer "Package and Publish" context menu entry to be enabled for this project even if 51 the Windows App SDK Nuget package has not yet been restored. 52 --> 53 <PropertyGroup Condition="'$(DisableHasPackageAndPublishMenuAddedByProject)'!='true' and '$(EnableMsixTooling)'=='true'"> 54 <HasPackageAndPublishMenu>true</HasPackageAndPublishMenu> 55 </PropertyGroup> 56 </Project>