Created
June 18, 2014 14:38
-
-
Save robdmoore/dcd325e0ee73493ff1b7 to your computer and use it in GitHub Desktop.
PowerShell to get a publish settings file in a semi-automated way
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
$scriptpath = $(Split-Path $MyInvocation.MyCommand.Path) | |
cd $scriptpath | |
if (-not (ls *.publishsettings | Test-Any)) { | |
Write-Warning "Please save a .publishsettings file to this folder" | |
start . | |
Get-AzurePublishSettingsFile | |
exit 1 | |
} | |
Import-AzurePublishSettingsFile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment