Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AOT compatible] Make HostsUILib become AOT compatible #36136

Merged
merged 5 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/modules/Hosts/HostsUILib/Helpers/DuplicateService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

namespace HostsUILib.Helpers
{
public class DuplicateService : IDuplicateService, IDisposable
public partial class DuplicateService : IDuplicateService, IDisposable
{
private record struct Check(string Address, string[] Hosts);

Expand Down
2 changes: 1 addition & 1 deletion src/modules/Hosts/HostsUILib/Helpers/HostsService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

namespace HostsUILib.Helpers
{
public class HostsService : IHostsService, IDisposable
public partial class HostsService : IHostsService, IDisposable
{
private const string _backupSuffix = $"_PowerToysBackup_";
private const int _defaultBufferSize = 4096; // From System.IO.File source code
Expand Down
1 change: 1 addition & 0 deletions src/modules/Hosts/HostsUILib/HostsUILib.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<!-- Look at Directory.Build.props in root for common stuff as well -->
<Import Project="..\..\..\Common.Dotnet.CsWinRT.props" />
<Import Project="..\..\..\Common.Dotnet.AotCompatibility.props" />

<PropertyGroup>
<OutputType>Library</OutputType>
Expand Down
Loading