Location of referenced assemblies

  • Thread starter Thread starter Russ Ferrill
  • Start date Start date
R

Russ Ferrill

I would like to store a referenced assembly in a subfolder within the
application's folder. When I move the assembly to the subfolder, the
application can no longer find it. Can somebody tell me what I need to do to
allow the application to find the referenced assembly in a subfolder of the
application's folder. Thanks very much.

Russ Ferrill
 
Russ,

You will need to configure so called 'private paths' in the application
configuration file:

<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="bin;bin2\subbin;bin3"/>
</assemblyBinding>
</runtime>
</configuration>

(the example above is taken from the corresponding MSDN topic, "<probing>
Element")
 
Thanks, Dmitriy! That's exactly what I needed.

Dmitriy Lapshin said:
Russ,

You will need to configure so called 'private paths' in the application
configuration file:

<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="bin;bin2\subbin;bin3"/>
</assemblyBinding>
</runtime>
</configuration>

(the example above is taken from the corresponding MSDN topic, "<probing>
Element")

--
Sincerely,
Dmitriy Lapshin [C# / .NET MVP]
Bring the power of unit testing to the VS .NET IDE today!
http://www.x-unity.net/teststudio.aspx

Russ Ferrill said:
I would like to store a referenced assembly in a subfolder within the
application's folder. When I move the assembly to the subfolder, the
application can no longer find it. Can somebody tell me what I need to do
to allow the application to find the referenced assembly in a subfolder of
the application's folder. Thanks very much.

Russ Ferrill
 
Back
Top