I want to pass a semi-colon separated list of strings.
Each string represents a file name.
<PropertyGroup>
<FileNames>Newtonsoft.Json;Reactive</FileNames>
<PathToOutput>C:/</PathToOutput>
</PropertyGroup>
Now I want to create an item group which should give me all the files in particular folder excluding list of Filename, something like:
<ItemGroup>
<ReleaseFiles Include="$(PathToOutput)\**\*.*" Exclude="%(identity)-> identity.contains(%FileNames)"/>
</ItemGroup>
How do I iterate through current folder's files and match each ones name if it contains any one filename in Filenames variable.