To locate and load a dependency, SmartAssembly searches for the dependency in the following locations, in this order:
If your dependency is not found, or if the wrong version of it is found, you can override the normal behavior by manually editing the SmartAssembly project file (*.saproj) in an XML editor. To do this, add the
MandatoryPath attribute to the
Assembly> tag, as in the example below:
<Assembly AssemblyName="dependency_assembly_name" MandatoryPath="C:\path\DependencyToUse.dll"> ... </Assembly>
SmartAssembly will always use the dependency found at this location.
If the dependency is not valid (for example, the file is not found, or the assembly has a different assembly name), SmartAssembly does not process your assembly and reports an error.
In rare cases, you may wish to ignore a folder when SmartAssembly searches for a dependency. An example is when you do not have permission to access the folder, and so you cannot check which versions of the dependency are in the folder.
To remove a folder from the dependency search:
DependenciesSearchPaths>, each search path is contained in a