I am trying to understand the difference between the two nuget restore commands in Azure build pipeline:
- task: NuGetCommand@2
inputs:
restoreSolution: '$(solution)'
and
- task: DotNetCoreCLI@2
inputs:
command: 'restore'
projects: '$(solution)'
feedsToUse: 'select'
I have tried to understand but at microsoft pages all I see is that one can use both - I can't really find anything stating what the differences are. (I do not really understand the feedsToUse: 'select' statement either)
And, as a second question, what is the difference between the latter and
- task: DotNetCoreCLI@2
inputs:
command: restore
projects: '**/*.csproj'
Given that the solution contains all of the csproj (and only csproj)?