From 64d2a52dd5e5c11df69db2b309e0d0fe8b5a8d09 Mon Sep 17 00:00:00 2001 From: Manodasan Wignarajah Date: Tue, 10 Sep 2024 14:30:54 -0700 Subject: [PATCH] Update NuGetCommand to use nuget.config (#1434) --- .pipelines/build.yml | 8 ++++++++ .pipelines/jobs/OneBranchBuild.yml | 4 ++++ .pipelines/jobs/OneBranchTest.yml | 2 ++ .pipelines/jobs/OneBranchVsix.yml | 2 ++ 4 files changed, 16 insertions(+) diff --git a/.pipelines/build.yml b/.pipelines/build.yml index 8a7ee556..b46e36eb 100644 --- a/.pipelines/build.yml +++ b/.pipelines/build.yml @@ -49,6 +49,10 @@ jobs: - task: NuGetCommand@2 displayName: NuGet restore + inputs: + command: 'restore' + feedsToUse: config + nugetConfigPath: NuGet.config - task: CmdLine@2 displayName: Build Tools @@ -322,6 +326,10 @@ jobs: - task: NuGetCommand@2 displayName: NuGet restore + inputs: + command: 'restore' + feedsToUse: config + nugetConfigPath: NuGet.config - task: DownloadPipelineArtifact@1 displayName: Download x86 Artifacts diff --git a/.pipelines/jobs/OneBranchBuild.yml b/.pipelines/jobs/OneBranchBuild.yml index 984530eb..f8ca8ced 100644 --- a/.pipelines/jobs/OneBranchBuild.yml +++ b/.pipelines/jobs/OneBranchBuild.yml @@ -51,6 +51,8 @@ jobs: inputs: command: 'restore' restoreSolution: '$(Build.SourcesDirectory)\cppwinrt.sln' + feedsToUse: config + nugetConfigPath: NuGet.config - task: VSBuild@1 displayName: Build fast_fwd @@ -72,6 +74,8 @@ jobs: inputs: command: 'restore' restoreSolution: '$(Build.SourcesDirectory)\natvis\cppwinrtvisualizer.sln' + feedsToUse: config + nugetConfigPath: NuGet.config - task: VSBuild@1 displayName: Build Component visualizer diff --git a/.pipelines/jobs/OneBranchTest.yml b/.pipelines/jobs/OneBranchTest.yml index bba8dac2..307f5e16 100644 --- a/.pipelines/jobs/OneBranchTest.yml +++ b/.pipelines/jobs/OneBranchTest.yml @@ -80,6 +80,8 @@ jobs: inputs: command: 'restore' restoreSolution: '$(Build.SourcesDirectory)\cppwinrt.sln' + feedsToUse: config + nugetConfigPath: NuGet.config - task: PowerShell@2 displayName: Remove cppwinrt dependency from test projects diff --git a/.pipelines/jobs/OneBranchVsix.yml b/.pipelines/jobs/OneBranchVsix.yml index 3526712e..b4d23eb4 100644 --- a/.pipelines/jobs/OneBranchVsix.yml +++ b/.pipelines/jobs/OneBranchVsix.yml @@ -56,6 +56,8 @@ jobs: inputs: command: 'restore' restoreSolution: '$(Build.SourcesDirectory)\vsix\vsix.sln' + feedsToUse: config + nugetConfigPath: NuGet.config - task: DownloadPipelineArtifact@2 displayName: 'Download x86 binaries'