Figure 15-12. CarLibrary.dll
now resides under the MyLibraries subdirectory.
.NET *.config files always open with a root element named . The nested
element may specify an element, which nests a further element
named
. The privatePath attribute is the key point in this example, as it is used to specify
the subdirectories relative to the application directory where the CLR should probe.
Do note that the
element does not specify which assembly is located under a given
subdirectory. In other words, you cannot say, “CarLibrary is located under the MyLibraries subdirec-
tory, but MathUtils is located under the Bin subdirectory.” The
element simply instructs
the CLR to investigate all specified subdirectories for the requested assembly until the first match is
encountered.
Do'stlaringiz bilan baham: