-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Remove the logic duplication for iOS case #46189
Conversation
Tagging subscribers to this area: @safern, @ViktorHofer Issue DetailsAddresses #46156 (comment)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. If you wanted to leave the runonly
path outside of TestArchiveTestsRoot
you could use an ItemDefinitionGroup
to define the common properties for the item group. i.e:
<ItemDefinitionGroup Condition="'$(TargetOS)' == 'iOS' or '$(TargetOS)' == 'tvOS'">
<MyItem>
<SharedMetadata>This is shared</SharedMetadata>
</MyItem>
</ItemDefinitionGroup>
<ItemGroup Condition="'$(TargetOS)' == 'iOS' or '$(TargetOS)' == 'tvOS'">
<MyItem Include="Item1" />
<MyItem Include="Item2">
<SpecificMetadata>MetadataForItem2</SpecificMetadata>
</MyItem>
</ItemGroup>
Perhaps, it makes sense to try this variant because the checking for substring looks like a less obvious option here :) |
4caf1e2
to
99137e8
Compare
The |
Addresses #46156 (comment)