From 8befaad3d137b88b13ffcf07517d35b184000a58 Mon Sep 17 00:00:00 2001 From: Naiyuan Tian Date: Mon, 19 Oct 2026 13:56:47 -0500 Subject: [PATCH] Fix CFS restore in official build pipeline Restore with the original NuGet.config to preserve CFS package-source mapping for the traversal SDK. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- eng/templates/build.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/eng/templates/build.yml b/eng/templates/build.yml index b642b10..ccf4ad5 100644 --- a/eng/templates/build.yml +++ b/eng/templates/build.yml @@ -47,14 +47,16 @@ jobs: - task: NuGetAuthenticate@1 displayName: 'Authenticate to CFS' + # Restore directly to preserve CFS source mapping for the traversal SDK. - task: DotNetCoreCLI@2 displayName: 'Restore nuget dependencies' inputs: - command: restore - feedsToUse: config - nugetConfigPath: 'NuGet.config' - verbosityRestore: Minimal - projects: 'src/dirs.proj' + command: custom + custom: restore + arguments: > + "$(Build.SourcesDirectory)\src\dirs.proj" + --configfile "$(Build.SourcesDirectory)\NuGet.config" + --verbosity minimal # Build the filtered solution in release mode, specifying the continuous integration flag. - task: DotNetCoreCLI@2