From 8d9af71566c2b747f4d35b982b4597c31f085139 Mon Sep 17 00:00:00 2001 From: Jiwon Lee Date: Wed, 1 Jul 2026 12:57:21 -0700 Subject: [PATCH 1/6] Add checked-in nuget.config and use it for restore steps Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- build.yml | 10 ++++------ nuget.config | 7 +++++++ 2 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 nuget.config diff --git a/build.yml b/build.yml index 09b75e0..5562ff3 100644 --- a/build.yml +++ b/build.yml @@ -15,9 +15,8 @@ steps: inputs: command: 'restore' projects: 'VSConfigFinder' - feedsToUse: 'select' - vstsFeed: 'Setup-Dependencies' - includeNuGetOrg: false + feedsToUse: 'config' + nugetConfigPath: 'nuget.config' - task: DotNetCoreCLI@2 displayName: Build @@ -31,9 +30,8 @@ steps: inputs: command: 'restore' projects: 'VSConfigFinder.Test' - feedsToUse: 'select' - vstsFeed: 'Setup-Dependencies' - includeNuGetOrg: false + feedsToUse: 'config' + nugetConfigPath: 'nuget.config' - task: DotNetCoreCLI@2 displayName: Test diff --git a/nuget.config b/nuget.config new file mode 100644 index 0000000..1d9db33 --- /dev/null +++ b/nuget.config @@ -0,0 +1,7 @@ + + + + + + + From 16c89355777e16918a59732fe64253ad9b774c87 Mon Sep 17 00:00:00 2001 From: Jiwon Lee Date: Wed, 1 Jul 2026 12:58:53 -0700 Subject: [PATCH 2/6] Use $(Build.SourcesDirectory) for nugetConfigPath Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.yml b/build.yml index 5562ff3..c456c57 100644 --- a/build.yml +++ b/build.yml @@ -16,7 +16,7 @@ steps: command: 'restore' projects: 'VSConfigFinder' feedsToUse: 'config' - nugetConfigPath: 'nuget.config' + nugetConfigPath: '$(Build.SourcesDirectory)\nuget.config' - task: DotNetCoreCLI@2 displayName: Build @@ -31,7 +31,7 @@ steps: command: 'restore' projects: 'VSConfigFinder.Test' feedsToUse: 'config' - nugetConfigPath: 'nuget.config' + nugetConfigPath: '$(Build.SourcesDirectory)\nuget.config' - task: DotNetCoreCLI@2 displayName: Test From 133ca7863a264f464b81862258d2b10d01dddd5a Mon Sep 17 00:00:00 2001 From: Jiwon Lee Date: Wed, 1 Jul 2026 13:00:43 -0700 Subject: [PATCH 3/6] Pass --configfile to build command Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.yml b/build.yml index c456c57..f471824 100644 --- a/build.yml +++ b/build.yml @@ -23,7 +23,7 @@ steps: inputs: command: 'build' projects: 'VSConfigFinder' - arguments: '--configuration $(BuildConfiguration) --no-restore' + arguments: '--configuration $(BuildConfiguration) --no-restore --configfile $(Build.SourcesDirectory)/nuget.config' - task: DotNetCoreCLI@2 displayName: Restore Test From 6f993a0d11b8e5e2766434d6a95ee376fd502fdd Mon Sep 17 00:00:00 2001 From: Jiwon Lee Date: Wed, 1 Jul 2026 13:05:22 -0700 Subject: [PATCH 4/6] Pass RestoreConfigFile and no-build to test command Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.yml b/build.yml index f471824..9e27685 100644 --- a/build.yml +++ b/build.yml @@ -38,7 +38,7 @@ steps: inputs: command: 'test' projects: 'VSConfigFinder.Test' - arguments: '--configuration $(BuildConfiguration) --no-restore' + arguments: '--configuration $(BuildConfiguration) --no-restore --no-build -p:RestoreConfigFile=$(Build.SourcesDirectory)/nuget.config' - task: DotNetCoreCLI@2 displayName: Publish From 96f4d783ff44951b9d6ac604d8adaaa840421b60 Mon Sep 17 00:00:00 2001 From: Jiwon Lee Date: Wed, 1 Jul 2026 13:22:58 -0700 Subject: [PATCH 5/6] Update test command arguments in build.yml Removed '--no-build' argument from test command. --- build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.yml b/build.yml index 9e27685..fa73245 100644 --- a/build.yml +++ b/build.yml @@ -38,7 +38,7 @@ steps: inputs: command: 'test' projects: 'VSConfigFinder.Test' - arguments: '--configuration $(BuildConfiguration) --no-restore --no-build -p:RestoreConfigFile=$(Build.SourcesDirectory)/nuget.config' + arguments: '--configuration $(BuildConfiguration) --no-restore -p:RestoreConfigFile=$(Build.SourcesDirectory)/nuget.config' - task: DotNetCoreCLI@2 displayName: Publish From f56345815f3be67bd42778028bfd6bcd2fbc0e17 Mon Sep 17 00:00:00 2001 From: Jiwon Lee Date: Wed, 1 Jul 2026 15:33:59 -0700 Subject: [PATCH 6/6] Add NuGet authentication task to build pipeline --- build.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.yml b/build.yml index fa73245..bab8eb0 100644 --- a/build.yml +++ b/build.yml @@ -10,6 +10,9 @@ steps: inputs: useGlobalJson: true + - task: NuGetAuthenticate@1 + displayName: Authenticate to Azure Artifacts + - task: DotNetCoreCLI@2 displayName: Restore Build inputs: