Skip to content

Commit 86a35af

Browse files
Use Nuget config file (#3112)
* Use nuget config * Use feed while building * Use nuget config * push location --------- Co-authored-by: Jean-Marc Prieur <[email protected]>
1 parent 153cb3b commit 86a35af

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build/template-restore-build-MSIdentityWeb.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,23 @@ steps:
1212
displayName: 'Install wasm-tools'
1313

1414
- powershell: |
15+
Push-Location $(IdWebSourceDir)
1516
$nugetSourceIsExternal = (dotnet nuget list source --format Short).Contains("https://api.nuget.org/v3/index.json")
1617
if ($nugetSourceIsExternal) {
1718
dotnet nuget remove source NuGet
1819
dotnet nuget add source https://identitydivision.pkgs.visualstudio.com/_packaging/IDDP/nuget/v3/index.json -n IDDP
1920
dotnet nuget list source
2021
}
22+
Pop-Location
2123
displayName: 'Remove external "NuGet" Source and add "IDDP artifacts" as a NuGet Source, if needed.'
2224

2325
- task: DotNetCoreCLI@2
2426
displayName: 'Build solution Microsoft.Identity.Web.sln'
2527
inputs:
2628
command: 'custom'
2729
custom: 'build'
30+
feedsToUse: 'config'
31+
nugetConfigPath: NuGet.config
2832
projects: '$(IdWebSourceDir)Microsoft.Identity.Web.sln'
2933
arguments: '-p:configuration=${{ parameters.BuildConfiguration }} -p:RunCodeAnalysis=true -p:MicrosoftIdentityWebVersion=${{ parameters.MicrosoftIdentityWebVersion }} -p:SourceLinkCreate=true'
3034

0 commit comments

Comments
 (0)