2024-04-26 19:41:44 +02:00
|
|
|
|
<Project Sdk="Microsoft.NET.Sdk">
|
2024-08-09 09:18:56 -07:00
|
|
|
|
<!-- Look at Directory.Build.props in root for common stuff as well -->
|
|
|
|
|
|
<Import Project="..\..\..\Common.Dotnet.CsWinRT.props" />
|
|
|
|
|
|
|
2024-04-26 19:41:44 +02:00
|
|
|
|
<PropertyGroup>
|
|
|
|
|
|
<OutputType>Library</OutputType>
|
|
|
|
|
|
<RootNamespace>HostsUILib</RootNamespace>
|
|
|
|
|
|
<UseWinUI>true</UseWinUI>
|
|
|
|
|
|
<EnablePreviewMsixTooling>true</EnablePreviewMsixTooling>
|
|
|
|
|
|
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
|
|
|
|
|
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
|
|
|
|
|
|
<AssemblyName>PowerToys.HostsUILib</AssemblyName>
|
2024-05-03 15:27:13 +01:00
|
|
|
|
<Platforms>AnyCPU</Platforms>
|
2024-04-26 19:41:44 +02:00
|
|
|
|
<!-- 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.HostsUILib.pri</ProjectPriFileName>
|
|
|
|
|
|
<GenerateLibraryLayout>true</GenerateLibraryLayout>
|
|
|
|
|
|
<IsPackable>true</IsPackable>
|
|
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
2024-05-03 15:27:13 +01:00
|
|
|
|
<PropertyGroup>
|
|
|
|
|
|
<!-- Properties for nuget package. -->
|
|
|
|
|
|
<Description>Implements the UI control for the PowerToys Hosts File Editor Utility</Description>
|
|
|
|
|
|
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
|
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
2024-04-26 19:41:44 +02:00
|
|
|
|
<ItemGroup>
|
|
|
|
|
|
<None Include="$(OutDir)\PowerToys.HostsUILib.pri" Pack="True" PackageCopyToOutput="true" PackagePath="lib/$(TargetFramework)" />
|
|
|
|
|
|
<None Include="$(OutDir)\PowerToys.HostsUILib.pri" Pack="True" PackageCopyToOutput="True" PackagePath="contentFiles\any\$(TargetFramework)" />
|
|
|
|
|
|
<None Include="$(OutDir)\PowerToys.HostsUILib.pdb" Pack="True" PackageCopyToOutput="true" PackagePath="lib/$(TargetFramework)" />
|
|
|
|
|
|
|
|
|
|
|
|
<None Include="Assets\**\*.png" Pack="true" PackageCopyToOutput="true" PackagePath="contentFiles\any\$(TargetFramework)\Assets" />
|
|
|
|
|
|
<None Include="Assets\**\*.ico" Pack="true" PackageCopyToOutput="true" PackagePath="contentFiles\any\$(TargetFramework)\Assets" />
|
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
|
|
<Content Remove="Assets\**\*.png" Pack="false" />
|
|
|
|
|
|
<Content Remove="Assets\**\*.ico" Pack="false" />
|
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
|
|
<PackageReference Include="CommunityToolkit.Mvvm" />
|
|
|
|
|
|
<PackageReference Include="CommunityToolkit.WinUI.Converters" />
|
|
|
|
|
|
<PackageReference Include="CommunityToolkit.WinUI.Collections" />
|
|
|
|
|
|
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" />
|
|
|
|
|
|
<PackageReference Include="Microsoft.WindowsAppSDK" />
|
|
|
|
|
|
<PackageReference Include="Microsoft.Xaml.Behaviors.WinUI.Managed" />
|
|
|
|
|
|
<PackageReference Include="System.IO.Abstractions" />
|
|
|
|
|
|
<Manifest Include="$(ApplicationManifest)" />
|
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
|
|
|
|
<ItemGroup Condition="'$(DisableMsixProjectCapabilityAddedByProject)'!='true' and '$(EnablePreviewMsixTooling)'=='true'">
|
|
|
|
|
|
<ProjectCapability Include="Msix" />
|
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
|
|
|
|
</Project>
|