Location of referenced assemblies

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
 
D

Dmitriy Lapshin [C# / .NET MVP]

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")
 
R

Russ Ferrill

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top