I like to get all *.csproj files within my folders (recursive) and later "tar" them into a tarball. I like to follow this approach but on PowerShell instead of bash.
What I came already up with is this:
gci -r -fi *.csproj | Resolve-Path -Relative | tar -cvf ball.tar --null -T -
The main problem now is, that I get the error
Couldn't find file: No such file or directory
I assume this is, because in contrast to bash, PowerShell outputs the files using a NewLine at the end of each found entry.
How can I remove the NewLine or avoid that it's added in the first place?