In some of my scripts I was using dotnet rimraf ./src/**/bin ./src/**/obj and they ran, but nothing was being deleted. After switching to dotnet rimraf src/**/bin src/**/obj they worked as expected. I assumed prefixing with ./ would work, and swore it did before publishing this, but it's not for some reason.