How do we make the Msbuild look in the current directory for the dlls before looking into Gac and other places . Add something like this in your project file: Soln 1 : <PropertyGroup> <AssemblySearchPath>$(AssemblySearchPath);$(MSBuildProjectDirectory)</AssemblySearchPath>