Assembly Probing

Shared assemblies don’t have to be installed in the GAC; as an alternative, assembly probing specifies a set of application subdirectories to search when attempting to locate an assembly. The probing information is included in the application configuration file.

More Info

For more general information about configuration files, consult Appendix C.

The following configuration file demonstrates the use of probing:

<configuration>
    <runtime>
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
            <probing privatePath="dir1;dir2\subdirectory;dir3"/>
        </assemblyBinding>
    </runtime>
</configuration>

This example specifies that assemblies should be searched for in the dir1, dir2\subdirectory, and dir3 directories, relative to the location ...

Get C# for Java Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.