Many Windows programs separate the exe file from the referenced dll and place it in different folders. For example, many people place all dll files in a folder named bin. Although the Asp. NET application places the compiled assembly in the bin folder by default, the common Windows program does not automatically go to the bin folder to find the required assembly.
In fact, CLR provides methods to solve this problem. In fact, you can place the Assembly in any subfolders. You only need to configure assemblyBinding in the configuration file. The following is an example:
If the Assembly is placed in multiple subdirectories, you only need to separate the subdirectories with semicolons.
However, all directories must be relative paths rather than absolute paths. The root directory of the relative path is the directory where the program is located. The reason for this restriction is that applications can safely manipulate their directories and Their subdirectories, but cannot operate other directories at will.