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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

moooyo
Copy link
Contributor

@moooyo moooyo commented Nov 28, 2024

Summary of the Pull Request

This PR does simply make DuplicateService and HostsService to be a partial class. It makes the HostsUILib AOT compatibility and we can mark HostsUILib is AOT compatiability after merging this PR change.

PR Checklist

  • Closes: #xxx
  • Communication: I've discussed this with core contributors already. If work hasn't been agreed, this work might be rejected
  • Tests: Added/updated and all pass
  • Localization: All end user facing strings can be localized
  • Dev docs: Added/updated
  • New binaries: Added on the required places
  • Documentation updated: If checked, please file a pull request on our docs repo and link it here: #xxx

Detailed Description of the Pull Request / Additional comments

The target is make PowerToys AOT compatible. That's a big change. So, we will split it to more small work. This PR is one of the AOT compatible work.

Validation Steps Performed

  • Manual build & launch hosts editor.
  • Add new hosts items
  • Validate hosts change.

This comment has been minimized.

@moooyo moooyo changed the title init [AOT compatible] Make HostsUILib become AOT compatible Nov 28, 2024
@moooyo moooyo marked this pull request as ready for review December 1, 2024 18:46
@crutkas crutkas added Needs-Review This Pull Request awaits the review of a maintainer. and removed Needs-Review This Pull Request awaits the review of a maintainer. labels Dec 2, 2024
@crutkas
Copy link
Member

crutkas commented Dec 2, 2024

@moooyo I marked #36176 approved and good to merge in. I'm assuming that needs to go in, this will then adopt that in the csproj and this will be ready, correct?

@moooyo
Copy link
Contributor Author

moooyo commented Dec 2, 2024

@moooyo I marked #36176 approved and good to merge in. I'm assuming that needs to go in, this will then adopt that in the csproj and this will be ready, correct?

Sure. I think so. We can check-in csproj change in this PR after #36176 merged. It's ready to mark HostsUILib to AOT compatible. I've tested it manually.

@crutkas
Copy link
Member

crutkas commented Dec 3, 2024

Why not in same PR?

@moooyo
Copy link
Contributor Author

moooyo commented Dec 3, 2024

Why not in same PR?

Sorry for the confusion. I mean, we can refer Common.Dotnet.AotCompatibility.props (which merged in #36176) in the HostsUILib's csproj file in this PR.

@moooyo
Copy link
Contributor Author

moooyo commented Dec 3, 2024

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@moooyo
Copy link
Contributor Author

moooyo commented Dec 9, 2024

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@crutkas crutkas added Needs-Review This Pull Request awaits the review of a maintainer. In for .88 labels Dec 10, 2024
@jaimecbernardo jaimecbernardo added the Don't merge - Hold for release Hold off on merging this PR, even if it's approved. label Dec 11, 2024
@jaimecbernardo
Copy link
Collaborator

Hi, we've added the "Don't Merge" tag to the PR, since we're trying to keep the repo stable for the release and possible hotfix if necessary. Please don't merge the PR while the tag is still in here. This allows people to review the PR and approve with less fear that it'll get merged 😄

Copy link
Collaborator

@snickler snickler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@crutkas crutkas added Good to merge after release and removed Needs-Review This Pull Request awaits the review of a maintainer. labels Dec 14, 2024
@jaimecbernardo jaimecbernardo removed the Don't merge - Hold for release Hold off on merging this PR, even if it's approved. label Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

5 participants