Skip to content

Commit 028b761

Browse files
authored
Added the loc for task deprecated message (#4549)
* Added the loc for task deprecated message * Corrected the Key string
1 parent 76f8400 commit 028b761

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

Tasks/AzureWebPowerShellDeployment/Publish-AzureWebDeployment.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Trace-VstsEnteringInvocation $MyInvocation
22
Import-VstsLocStrings "$PSScriptRoot\Task.json"
33

4-
Write-Warning "'Azure App Service: Classic' task will be deprecated soon. 'Azure App Service Deploy' task will replace 'Azure App Service: Classic' task and the recommendation is to migrate your Build or Release process to use the 'Azure App Service Deploy' task. Refer https://go.microsoft.com/fwlink/?LinkID=613750 for more details."
4+
Write-Warning (Get-VstsLocString -Key "DeprecatedWarning")
55

66
function Get-SingleFile($files, $pattern)
77
{

Tasks/AzureWebPowerShellDeployment/Strings/resources.resjson/en-US/resources.resjson

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@
2424
"loc.messages.Updatingdeploymenthistoryfordeployment0": "Updating deployment history for deployment {0}",
2525
"loc.messages.Nofileswerefoundtodeploywithsearchpattern0": "No files were found to deploy with search pattern {0}",
2626
"loc.messages.Foundmorethanonefiletodeploywithsearchpattern0Therecanbeonlyone": "Found more than one file to deploy with search pattern {0}. There can be only one.",
27-
"loc.messages.FailedtodeployWebsiteError0": "Failed to deploy Website. Error : {0}"
27+
"loc.messages.FailedtodeployWebsiteError0": "Failed to deploy Website. Error : {0}",
28+
"loc.messages.DeprecatedWarning": "'Azure App Service: Classic' task will be deprecated soon. 'Azure App Service Deploy' task will replace 'Azure App Service: Classic' task and the recommendation is to migrate your Build or Release process to use the 'Azure App Service Deploy' task. Refer https://go.microsoft.com/fwlink/?LinkID=613750 for more details."
2829
}

Tasks/AzureWebPowerShellDeployment/task.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@
115115
"Updatingdeploymenthistoryfordeployment0": "Updating deployment history for deployment {0}",
116116
"Nofileswerefoundtodeploywithsearchpattern0": "No files were found to deploy with search pattern {0}",
117117
"Foundmorethanonefiletodeploywithsearchpattern0Therecanbeonlyone": "Found more than one file to deploy with search pattern {0}. There can be only one.",
118-
"FailedtodeployWebsiteError0": "Failed to deploy Website. Error : {0}"
118+
"FailedtodeployWebsiteError0": "Failed to deploy Website. Error : {0}",
119+
"DeprecatedWarning": "'Azure App Service: Classic' task will be deprecated soon. 'Azure App Service Deploy' task will replace 'Azure App Service: Classic' task and the recommendation is to migrate your Build or Release process to use the 'Azure App Service Deploy' task. Refer https://go.microsoft.com/fwlink/?LinkID=613750 for more details."
119120
}
120121
}

Tasks/AzureWebPowerShellDeployment/task.loc.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"Release"
1111
],
1212
"runsOn": [
13-
"Agent"
13+
"Agent"
1414
],
1515
"author": "Microsoft Corporation",
1616
"version": {
@@ -115,6 +115,7 @@
115115
"Updatingdeploymenthistoryfordeployment0": "ms-resource:loc.messages.Updatingdeploymenthistoryfordeployment0",
116116
"Nofileswerefoundtodeploywithsearchpattern0": "ms-resource:loc.messages.Nofileswerefoundtodeploywithsearchpattern0",
117117
"Foundmorethanonefiletodeploywithsearchpattern0Therecanbeonlyone": "ms-resource:loc.messages.Foundmorethanonefiletodeploywithsearchpattern0Therecanbeonlyone",
118-
"FailedtodeployWebsiteError0": "ms-resource:loc.messages.FailedtodeployWebsiteError0"
118+
"FailedtodeployWebsiteError0": "ms-resource:loc.messages.FailedtodeployWebsiteError0",
119+
"DeprecatedWarning": "ms-resource:loc.messages.DeprecatedWarning"
119120
}
120121
}

0 commit comments

Comments
 (0)