mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
[AOT compatible] Make HostsUILib become AOT compatible (#36136)
* Remove AOT configuration * Refer to AOT compatibility props --------- Co-authored-by: Yu Leng (from Dev Box) <yuleng@microsoft.com>
This commit is contained in:
@@ -14,7 +14,7 @@ using Microsoft.UI.Dispatching;
|
|||||||
|
|
||||||
namespace HostsUILib.Helpers
|
namespace HostsUILib.Helpers
|
||||||
{
|
{
|
||||||
public class DuplicateService : IDuplicateService, IDisposable
|
public partial class DuplicateService : IDuplicateService, IDisposable
|
||||||
{
|
{
|
||||||
private record struct Check(string Address, string[] Hosts);
|
private record struct Check(string Address, string[] Hosts);
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ using Microsoft.Win32;
|
|||||||
|
|
||||||
namespace HostsUILib.Helpers
|
namespace HostsUILib.Helpers
|
||||||
{
|
{
|
||||||
public class HostsService : IHostsService, IDisposable
|
public partial class HostsService : IHostsService, IDisposable
|
||||||
{
|
{
|
||||||
private const string _backupSuffix = $"_PowerToysBackup_";
|
private const string _backupSuffix = $"_PowerToysBackup_";
|
||||||
private const int _defaultBufferSize = 4096; // From System.IO.File source code
|
private const int _defaultBufferSize = 4096; // From System.IO.File source code
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<!-- Look at Directory.Build.props in root for common stuff as well -->
|
<!-- Look at Directory.Build.props in root for common stuff as well -->
|
||||||
<Import Project="..\..\..\Common.Dotnet.CsWinRT.props" />
|
<Import Project="..\..\..\Common.Dotnet.CsWinRT.props" />
|
||||||
|
<Import Project="..\..\..\Common.Dotnet.AotCompatibility.props" />
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Library</OutputType>
|
<OutputType>Library</OutputType>
|
||||||
|
|||||||
Reference in New Issue
Block a user