I found a blog post explaining how to do this.
Open the package manager console (for example, View | Other Windows | package manager console) and use a script, for example, the following for relative paths:
$path = [System.IO.Path]; foreach ($proj in get-project -all) {$proj.Properties.Item("ReferencePath").Value="$($path::GetDirectoryName($proj.filename))\..\libs"}
or is it for one fixed project link for all projects:
foreach ($proj in get-project -all) {$proj.Properties.Item("ReferencePath").Value=C:\lib"}
source share