Skip to content

Commit

Permalink
rm nuget.config feed to use, add Jean-Marc's script to use internal f…
Browse files Browse the repository at this point in the history
…eed (#2936)
  • Loading branch information
kllysng authored Oct 24, 2024
1 parent 788a7a4 commit c6b3b6a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions build/template-Build-run-tests-sign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,15 @@ steps:
regedit /s .\build\strongNameBypass.reg
displayName: 'Strong Name Bypass'

- powershell: |
$nugetSourceIsExternal = (dotnet nuget list source --format Short).Contains("https://api.nuget.org/v3/index.json")
if ($nugetSourceIsExternal) {
dotnet nuget remove source NuGet
dotnet nuget add source https://identitydivision.pkgs.visualstudio.com/_packaging/IDDP/nuget/v3/index.json -n IDDP
dotnet nuget list source
}
displayName: 'Remove external "NuGet" Source and add "IDDP artifacts" as a NuGet Source, if needed.'

- task: DotNetCoreCLI@2
displayName: Build
inputs:
Expand Down Expand Up @@ -136,8 +145,6 @@ steps:
verbosityPack: 'Minimal'
configuration: $(BuildConfiguration)
packagesToPack: '$(WilsonSourceDirectory)Product.proj'
feedsToUse: 'config'
nugetConfigPath: Nuget.config
externalFeedCredentials: 'Internal Analyzers'

- task: onebranch.pipeline.signing@1
Expand Down

0 comments on commit c6b3b6a

Please sign in to comment.