Skip to content

Commit 5aba949

Browse files
authored
Replace NuGet task GUID with NuGetCommand@2 (#6302)
1 parent 7c5f650 commit 5aba949

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

build/AzurePipelinesTemplates/WindowsAppSDK-BuildFoundation-AnyCPU-Steps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ steps:
1414
inputs:
1515
nuGetServiceConnections: 'TelemetryInternal'
1616

17-
- task: 333b11bd-d341-40d9-afcf-b32d5ce6f23b@2
17+
- task: NuGetCommand@2
1818
displayName: 'NuGet restore of packages'
1919
inputs:
2020
command: 'custom'

build/AzurePipelinesTemplates/WindowsAppSDK-BuildFoundation-Steps.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ steps:
1717
inputs:
1818
nuGetServiceConnections: 'TelemetryInternal'
1919

20-
- task: 333b11bd-d341-40d9-afcf-b32d5ce6f23b@2
20+
- task: NuGetCommand@2
2121
displayName: 'NuGet restore of packages'
2222
inputs:
2323
command: 'custom'
@@ -38,7 +38,7 @@ steps:
3838
filePath: '$(REPOROOT)\build\Scripts\ConvertVersionDetailsToPackageConfig.ps1'
3939
arguments: -versionDetailsPath '$(REPOROOT)\eng\Version.Details.xml' -packageConfigPath '$(REPOROOT)\build\packages.config'
4040

41-
- task: 333b11bd-d341-40d9-afcf-b32d5ce6f23b@2
41+
- task: NuGetCommand@2
4242
displayName: RestoreNuGetPackages
4343
retryCountOnTaskFailure: 10
4444
inputs:

build/AzurePipelinesTemplates/WindowsAppSDK-BuildInstaller-Steps.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ steps:
7676
arguments: -versionDetailsPath '$(Build.SourcesDirectory)\$(foundationRepoPath)eng\Version.Details.xml' -packageConfigPath '$(Build.SourcesDirectory)\$(foundationRepoPath)build\packages.config'
7777
condition: and(succeeded(), ne(variables.SkipInstallerBuild, true))
7878

79-
- task: 333b11bd-d341-40d9-afcf-b32d5ce6f23b@2
79+
- task: NuGetCommand@2
8080
displayName: RestoreNuGetPackages
8181
inputs:
8282
restoreSolution: $(foundationRepoPath)build/packages.config
@@ -152,7 +152,7 @@ steps:
152152
condition: and(succeeded(), ne(variables.SkipInstallerBuild, true))
153153

154154
# NuGetCommand@2
155-
- task: 333b11bd-d341-40d9-afcf-b32d5ce6f23b@2
155+
- task: NuGetCommand@2
156156
displayName: 'Restore Windows App Runtime Install Nuget'
157157
inputs:
158158
command: 'restore'
@@ -178,7 +178,7 @@ steps:
178178
condition: and(succeeded(), ne(variables.SkipInstallerBuild, true))
179179

180180
# NuGetCommand@2
181-
- task: 333b11bd-d341-40d9-afcf-b32d5ce6f23b@2
181+
- task: NuGetCommand@2
182182
displayName: "NuGet restore Microsoft.Telemetry.Inbox.Native package"
183183
inputs:
184184
command: "custom"

build/AzurePipelinesTemplates/WindowsAppSDK-PackTransportPackage-Stage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ stages:
271271

272272
- ${{ if eq(parameters.PublishPackage, 'true') }}:
273273
# this mysterious guid fixes the "NuGetCommand@2 is ambiguous" error :-(
274-
- task: 333b11bd-d341-40d9-afcf-b32d5ce6f23b@2
274+
- task: NuGetCommand@2
275275
displayName: 'NuGet push to ProjectReunion.nuget.internal'
276276
inputs:
277277
command: 'push'

build/WindowsAppSDK-BuildDevCheck.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ extends:
7373
TargetFolder: '$(Build.SourcesDirectory)\PackLocation'
7474
flattenFolders: false
7575

76-
- task: 333b11bd-d341-40d9-afcf-b32d5ce6f23b@2
76+
- task: NuGetCommand@2
7777
displayName: 'Pack DevCheckPackage'
7878
inputs:
7979
command: 'pack'
@@ -83,7 +83,7 @@ extends:
8383
packDestination: '$(ob_outputDirectory)'
8484

8585
- ${{ if eq(parameters.PushPackageToInternalFeed, 'true') }}:
86-
- task: 333b11bd-d341-40d9-afcf-b32d5ce6f23b@2
86+
- task: NuGetCommand@2
8787
displayName: 'NuGet push package to Project.Reunion.nuget.internal'
8888
inputs:
8989
command: 'push'

0 commit comments

Comments
 (0)