Adding a Reference Path to all your .NET projects

This is usually useful when you have several projects that have references to other's projects or 3rd parties assemblies, or for your compile server, instead of adding the reference paths to the project properties for each project you can just add the following key to the registry:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v2.0.50727\AssemblyFoldersEx\MyAssemblies]
@="p:\\somefolder\\somebuild\\bin"
EDIT: for 64 bits machines use this:
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\v2.0.50727\AssemblyFoldersEx\MyAssemblies]
@="p:\\somefolder\\somebuild\\bin"

No Comments