You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Parameter(Mandatory=$false,HelpMessage="The Publish URL to update to.")]
104
-
[string]$PublishUrl='',
104
+
[string]$PublishUrl=[string]::Empty,
105
105
106
106
[Parameter(Mandatory=$false,HelpMessage="The Install URL to update to.")]
107
-
[string]$InstallUrl=''
107
+
[string]$InstallUrl=[string]::Empty
108
108
)
109
109
110
110
# If we can't find the project file path to update, exit with an error.
@@ -115,9 +115,9 @@ if (!(Test-Path $ProjectFilePath -PathType Leaf))
115
115
}
116
116
117
117
# If there are no changes to make, just exit.
118
-
if ([string]::IsNullOrEmpty($Version) -and$BuildSystemsBuildId-lt0-and!$IncrementProjectFilesRevision-and!$UpdateMinimumRequiredVersionToCurrentVersion-and!$InstallUrl-and!$PublishUrl)
118
+
if ([string]::IsNullOrEmpty($Version) -and$BuildSystemsBuildId-lt0-and!$IncrementProjectFilesRevision-and!$UpdateMinimumRequiredVersionToCurrentVersion-and[string]::IsNullOrEmpty($InstallUrl)-and[string]::IsNullOrEmpty($PublishUrl))
119
119
{
120
-
Write-Warning"None of the following parameters were provided, so nothing will be changed: Version, BuildSystemsBuildId, IncrementProjectFilesRevision, UpdateMinimumRequiredVersionToCurrentVersion, InstallUrl and PublishUrl"
120
+
Write-Warning"None of the following parameters were provided, so nothing will be changed: Version, BuildSystemsBuildId, IncrementProjectFilesRevision, UpdateMinimumRequiredVersionToCurrentVersion, InstallUrl, and PublishUrl"
121
121
return
122
122
}
123
123
@@ -246,22 +246,20 @@ foreach ($clickOncePropertyGroup in $clickOncePropertyGroups)
246
246
$numberOfClickOncePropertyGroupsProcessed++
247
247
Write-Verbose"Processing ClickOnce property group $numberOfClickOncePropertyGroupsProcessed of $numberOfClickOncePropertyGroups in file '$ProjectFilePath'."
248
248
249
-
# If publish url is provided, update it
250
-
$publishUrl=$PublishUrl
251
-
if (![string]::IsNullOrEmpty($publishUrl))
249
+
# If publish url is provided, update it.
250
+
if (![string]::IsNullOrEmpty($PublishUrl))
252
251
{
253
-
Write-Verbose"Publish Url is '$publishUrl'"
254
-
Write-Output"Updating PublishUrl to be '$publishUrl'"
0 commit comments