I am trying to get away from using MsBuild scrips in my CD pipeline and I am having trouble replicating a specific target from my MsBuild script.
Here is the operation that I would like to perform in Powershell...
(gist since msbuild xml does not display here)
With this being the content of source
The result in the destination folder should be this
My first attempt was to use Get-ChildItem and Where-Object -notin but that was very slow and didn't give me the same result as my MsBuild target.