Asp.net, listbox, htc, behavior, autosearch listbox, wcf, certificate Msbuild Dll Probing Search Path Custom - Discoveries / Experiences in .Net Application development - Site Home - MSDN Blogs

Discoveries / Experiences in .Net Application development

Discoveries during Web Application development using Asp.Net, C# etc

Msbuild Dll Probing Search Path Custom

Msbuild Dll Probing Search Path Custom

Rate This
  • Comments 1

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>

</PropertyGroup>

or

Soln 2 :

Try this works as well .


<ItemGroup>
<CustomTaskInput Include="MyDll.dll"/>
</ItemGroup>

<Target Name="MYTarget" Inputs="@CustomTaskInput" Outputs=”abc.txt”>
<CustomTask />
</Target>

It works now, It probes the current directory for all the dll’s. Very bad that it is documented nowhere. Searched all over Msdn.

Page 1 of 1 (1 items)
Leave a Comment
  • Please add 1 and 2 and type the answer here:
  • Post