razor-tooling/eng/restore-internal-tools.yml

33 строки
1006 B
YAML

steps:
- task: NuGetAuthenticate@1
inputs:
nuGetServiceConnections: devdiv/dotnet-core-internal-tooling, devdiv/engineering
forceReinstallCredentialProvider: true
# Needed for SBOM tool
- task: UseDotNet@2
displayName: 'Use .NET Core 3.1 runtime'
inputs:
packageType: runtime
version: 3.1.28
installationPath: '$(Build.SourcesDirectory)\.dotnet'
# Needed because the build fails the NuGet Tools restore without it
- task: UseDotNet@2
displayName: 'Use .NET Core sdk'
inputs:
packageType: sdk
useGlobalJson: true
workingDirectory: '$(Build.SourcesDirectory)'
# Needed to restore the Microsoft.DevDiv.Optimization.Data.PowerShell package
- task: NuGetCommand@2
displayName: Restore internal tools
inputs:
command: restore
feedsToUse: config
restoreSolution: 'eng\common\internal\Tools.csproj'
nugetConfigPath: 'NuGet.config'
restoreDirectory: '$(Build.SourcesDirectory)\.packages'