<_ResourceItemsWithTargetPath>
$(AllTizenProfiles)
Never
<_TargetProfile>%(AllTizenProfilesItems.Identity)
<_IsProfileMatch>false
<_IsProfileMatch Condition="'%(SupportedProfilesItems.Identity)' == '$(_TargetProfile)'">true
<_ResourceItemsWithTargetPath Include="@(_ItemsWithTargetPath)"
Condition="$([System.String]::new('%(_ItemsWithTargetPath.TargetPath)').StartsWith('res/', System.StringComparison.OrdinalIgnoreCase))" />
<_ResourceItemsWithTargetPath Remove="@(_ResourceItemsWithTargetPath)"
Condition="'%(CopyToOutputDirectory)' == '' Or '%(CopyToOutputDirectory)' == 'Never'" />
<_ProfilePreloadItems Include="$(OutDir)*.preload" />
<_ProfileFiles Include="$(TargetFileName)" Condition="'$(_IsProfileMatch)' == 'true'" />
<_ProfileFiles Include="%(_ProfileResourceItemsWithTargetPath.TargetPath)" Condition="'$(_IsProfileMatch)' == 'true'" />
<_ProfileFiles Include="@(_ProfilePreloadItems->'%(Filename)%(Extension)')" Condition="'$(_IsProfileMatch)' == 'true'" />
<_ProfileFiles Include="ref/$(TargetFileName)" Condition="'$(_IsProfileMatch)' == 'false'" />
();
foreach (var item in Items) {
string tizenProfile = item.GetMetadata("TizenProfile");
if (!string.IsNullOrEmpty(tizenProfile)) {
string[] profiles = tizenProfile.Split(';');
if (profiles.Any(TargetProfile.Equals)) {
_matchedItems.Add(item);
}
}
}
MatchedItems = _matchedItems.ToArray();
]]>