Created
November 5, 2017 09:16
-
-
Save garfbradaz/54645abe0e6005fb43943ac9ba99c9ad to your computer and use it in GitHub Desktop.
Simple Script to update app.config keys during the Team Services (TFS) Build.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
New-Item -ItemType directory -Path $(Build.SourcesDirectory)\EmailTests | |
$xml = [xml](Get-Content app.config) | |
$xml.configuration.'system.net'.mailSettings.smtp.specifiedPickupDirectory | foreach { $_.pickupDirectoryLocation = "$(Build.SourcesDirectory)\EmailTests\" } | |
$xml.Save((Resolve-Path "app.config")) | |
Write-Host $(Build.SourcesDirectory) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment