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

Enable building tests with UseLocalAppHostPack=true #99354

Merged
merged 1 commit into from
Mar 12, 2024
Merged

Conversation

am11
Copy link
Member

@am11 am11 commented Mar 6, 2024

Contributes to #97791
This is to enable building clr tests with -p:UseLocalAppHostPack=true (once the host subset is already built). This option is useful for community-supported platforms, which are listed in KnownFrameworkReference, KnownRuntimePack etc. in the dotnet/installer repo and we don't expect the official SDK to provide packs for these platforms.

@ghost
Copy link

ghost commented Mar 6, 2024

Tagging subscribers to this area: @hoyosjs
See info in area-owners.md if you want to be subscribed.

Issue Details

Contributes to #97791
This is to enable building clr tests with -p:UseLocalAppHostPack=true (once the host subset is already built). This option is useful for community-supported platforms, which are listed in KnownFrameworkReference, KnownRuntimePack etc. in the dotnet/installer repo and we don't expect the official SDK to provide packs for these platforms.

Author: am11
Assignees: -
Labels:

area-Infrastructure-coreclr

Milestone: -

@am11 am11 requested review from jkoritzinsky and jkotas March 8, 2024 21:43
Copy link
Member

@hoyosjs hoyosjs left a comment

Choose a reason for hiding this comment

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

Quick question. Otherwise, lgtm

@@ -543,6 +543,7 @@
<Target Name="RestorePackage">
<PropertyGroup>
<_ConfigurationProperties>/p:TargetOS=$(TargetOS) /p:TargetArchitecture=$(TargetArchitecture) /p:Configuration=$(Configuration) /p:CrossBuild=$(CrossBuild)</_ConfigurationProperties>
<_ConfigurationProperties Condition="'$(UseLocalAppHostPack)' == 'true'">$(_ConfigurationProperties) -p:EnableAppHostPackDownload=false -p:EnableTargetingPackDownload=false -p:EnableRuntimePackDownload=false</_ConfigurationProperties>
Copy link
Member

Choose a reason for hiding this comment

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

I guess the restore proj doesn't import eng/targetingpacks.targets? If it does it's enough to pass down the option, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yup, this can be removed when eng/targetingpacks.targets is imported. I kept this stopgap PR small. (I will try importing it and open a separate PR)

@hoyosjs hoyosjs merged commit 54ff0d2 into dotnet:main Mar 12, 2024
101 checks passed
@am11 am11 deleted the patch-29 branch March 12, 2024 09:12
Copy link
Member

@gbalykov gbalykov left a comment

Choose a reason for hiding this comment

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

LGTM

@github-actions github-actions bot locked and limited conversation to collaborators Apr 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants