动态的为你的Winform配置Dll目录
在应用程序运行的时候,他会检查当前程序运行的目录有无所需要的dll文件,如果找不到,他就会查找APP.Config配置文件中所配置的目录,具体配置文件的写法如下:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="Your Dll Directory"/>
</assemblyBinding>
</runtime>
</configuration>
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)