Skip to content

Instantly share code, notes, and snippets.

@bradwilson
Created March 28, 2012 18:41
Show Gist options
  • Save bradwilson/2229275 to your computer and use it in GitHub Desktop.
Save bradwilson/2229275 to your computer and use it in GitHub Desktop.
Scorch PowerShell script for mixed Git/TFS environments
& taskkill /f /im msbuild.exe
if ((get-gitstatus) -ne $null) {
& git clean -xdf -e *.suo -e packages/*
} else {
& tfpt scorch . /recursive /deletes /diff /noprompt /exclude:"*.suo,.\packages"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment