2023-01-10 04:57:58 +03:00
|
|
|
steps:
|
2024-01-10 15:14:00 +03:00
|
|
|
- task: NuGetAuthenticate@1
|
2022-07-11 21:46:38 +03:00
|
|
|
inputs:
|
2024-04-07 01:21:46 +03:00
|
|
|
nuGetServiceConnections: devdiv/dotnet-core-internal-tooling, devdiv/engineering
|
2022-07-11 21:46:38 +03:00
|
|
|
forceReinstallCredentialProvider: true
|
|
|
|
|
2024-04-07 01:21:46 +03:00
|
|
|
# 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
|
2022-07-11 21:46:38 +03:00
|
|
|
displayName: Restore internal tools
|
2024-04-07 01:21:46 +03:00
|
|
|
inputs:
|
|
|
|
command: restore
|
|
|
|
feedsToUse: config
|
|
|
|
restoreSolution: 'eng\common\internal\Tools.csproj'
|
|
|
|
nugetConfigPath: 'NuGet.config'
|
|
|
|
restoreDirectory: '$(Build.SourcesDirectory)\.packages'
|
2022-07-11 21:46:38 +03:00
|
|
|
|