param($installPath, $toolsPath, $package, $project)
$packageName = "..."
$version = "..."
$projects = get-project -all
foreach($project in $projects)
{
$packages = $project | get-package | where {$_.Id -eq $packageName} | where {$_.Version = $version}
foreach($package in $packages)
{
write-output $project
}
}
# get effected projects
$projects = get-project Project1,Project2
# uninstall current version
$projects | Uninstall-Package Apache.NMS.ActiveMQ -Force
$projects | Uninstall-Package Apache.NMS -Force
# install old version
$projects | Install-Package Apache.NMS -Version "1.5.0"
$projects | Install-Package Apache.NMS.ActiveMQ -Version "1.5.1"