Restore Nuget using Powerful Powershell

#script to restore the pacakge [cmdletBinding()] param ( [parameter(Mandatory = $true)] $Solutions, #relative to bamboo working directory [parameter(Mandatory = $true)] $BuildWorkingDirectory, [parameter(Mandatory = $true)] $NugetPackage ) $SlnList = $Solutions -split “;” $NugetPackage = Join-Path $BuildWorkingDirectory $NugetPackage foreach($Sln in $SlnList) { $sln = Join-Path $BuildWorkingDirectory $sln Write-Host “$sln” Write-Host “$NugetPackage” if(Test-Path $Sln) { try { Write-Host[…]

Restore Nuget Packages Using Powershell

#script to restore the pacakge [cmdletBinding()] param ( [parameter(Mandatory = $true)] $Solutions, #relative to bamboo working directory [parameter(Mandatory = $true)] $BuildWorkingDirectory, [parameter(Mandatory = $true)] $NugetPackage ) $SlnList = $Solutions -split “;” $NugetPackage = Join-Path $BuildWorkingDirectory $NugetPackage foreach($Sln in $SlnList) { $sln = Join-Path $BuildWorkingDirectory $sln Write-Host “$sln” Write-Host “$NugetPackage” if(Test-Path $Sln) { try { Write-Host[…]