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 1 commit
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
Next Next commit
init
  • Loading branch information
Yu Leng (from Dev Box) committed Nov 28, 2024
commit cf18c471290eb693a3a9ddae3db2983a38c8c85e
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
4 changes: 4 additions & 0 deletions src/modules/Hosts/HostsUILib/HostsUILib.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
<ProjectPriFileName>PowerToys.HostsUILib.pri</ProjectPriFileName>
<GenerateLibraryLayout>true</GenerateLibraryLayout>
<IsPackable>true</IsPackable>
<!-- AOT settings -->
<IsAotCompatible>true</IsAotCompatible>
<CsWinRTAotOptimizerEnabled>true</CsWinRTAotOptimizerEnabled>
<CsWinRTAotWarningLevel>2</CsWinRTAotWarningLevel>
</PropertyGroup>

<PropertyGroup>
Expand Down
Loading