Skip to content

Instantly share code, notes, and snippets.

@Wesley-Lomax
Last active May 13, 2016 10:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Wesley-Lomax/f46f70de5619266573237cf750c306d2 to your computer and use it in GitHub Desktop.
Save Wesley-Lomax/f46f70de5619266573237cf750c306d2 to your computer and use it in GitHub Desktop.
Remove Config Transforms per role
$files = @('Web.CD.config','ConnectionStrings.CD.config','ConnectionStrings.CM.config')
$installDirectory = $OctopusParameters["Octopus.Action[Deploy Site Code].Output.Package.InstallationDirectoryPath"]
Get-ChildItem -Path $installDirectory -Include $files -Recurse | foreach { $_.Delete()}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment