I found a better working solutin for me, adding <Target> with the name BeforeResolveReferences , which sets the AssemblySearchPaths property, adding my CommonLibs folder as the first path to search for assemblies:
<Target Name="BeforeResolveReferences"> <CreateProperty Value="..\CommonLibs\;$(AssemblySearchPaths)"> <Output TaskParameter="Value" PropertyName="AssemblySearchPaths" /> </CreateProperty> </Target>
The assemblies included in the assembly kit are all located in the folder named "CommonLibs" at the same level as the solution folder.
Adding <AssemblySearchPaths> , as mentioned in the previous answer, unfortunately does not work for me:
Although the DLLs referenced by the new path can be found by the compiler, regular System.* Assemblies can no longer be found.
In Visual Studio 2010, the <AssemblySearchPaths> files in the project files may be invalid because the editor warns that this element is invalid.
minni
source share