I found a better and for me working solutin, adding a <Target>
with name BeforeResolveReferences
, that sets the "AssemblySearchPaths" Property, adding my CommonLibs folder as first path to look for assemblies:
<Target Name="BeforeResolveReferences">
<CreateProperty Value="..\CommonLibs\;$(AssemblySearchPaths)">
<Output TaskParameter="Value" PropertyName="AssemblySearchPaths" />
</CreateProperty>
</Target>
The to be included Assemblies are all in folder with the name "CommonLibs" on the same level as the solution folder(s).
Adding <AssemblySearchPaths>
as mentioned in the previous answer did sadly not work for me:
Although the DLLs referenced in the new path could be found by the compiler, the normal System.*
Assemblies can not be found any more.
In Visual Studio 2010 the <AssemblySearchPaths>
in project files might not be a valid option any more, as the editor warns, that this element is not valid.