Skip to content

Commit 64d2a52

Browse files
authored
Update NuGetCommand to use nuget.config (#1434)
1 parent 2e4bdb0 commit 64d2a52

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

.pipelines/build.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ jobs:
4949

5050
- task: NuGetCommand@2
5151
displayName: NuGet restore
52+
inputs:
53+
command: 'restore'
54+
feedsToUse: config
55+
nugetConfigPath: NuGet.config
5256

5357
- task: CmdLine@2
5458
displayName: Build Tools
@@ -322,6 +326,10 @@ jobs:
322326

323327
- task: NuGetCommand@2
324328
displayName: NuGet restore
329+
inputs:
330+
command: 'restore'
331+
feedsToUse: config
332+
nugetConfigPath: NuGet.config
325333

326334
- task: DownloadPipelineArtifact@1
327335
displayName: Download x86 Artifacts

.pipelines/jobs/OneBranchBuild.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ jobs:
5151
inputs:
5252
command: 'restore'
5353
restoreSolution: '$(Build.SourcesDirectory)\cppwinrt.sln'
54+
feedsToUse: config
55+
nugetConfigPath: NuGet.config
5456

5557
- task: VSBuild@1
5658
displayName: Build fast_fwd
@@ -72,6 +74,8 @@ jobs:
7274
inputs:
7375
command: 'restore'
7476
restoreSolution: '$(Build.SourcesDirectory)\natvis\cppwinrtvisualizer.sln'
77+
feedsToUse: config
78+
nugetConfigPath: NuGet.config
7579

7680
- task: VSBuild@1
7781
displayName: Build Component visualizer

.pipelines/jobs/OneBranchTest.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ jobs:
8080
inputs:
8181
command: 'restore'
8282
restoreSolution: '$(Build.SourcesDirectory)\cppwinrt.sln'
83+
feedsToUse: config
84+
nugetConfigPath: NuGet.config
8385

8486
- task: PowerShell@2
8587
displayName: Remove cppwinrt dependency from test projects

.pipelines/jobs/OneBranchVsix.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ jobs:
5656
inputs:
5757
command: 'restore'
5858
restoreSolution: '$(Build.SourcesDirectory)\vsix\vsix.sln'
59+
feedsToUse: config
60+
nugetConfigPath: NuGet.config
5961

6062
- task: DownloadPipelineArtifact@2
6163
displayName: 'Download x86 binaries'

0 commit comments

Comments
 (0)