要修改程式引用的DLL路徑,在配置檔案 app.config 上新增 runtime 內的配置,將專案的 dll 檔案都放到 privatePath 配置的目錄即可
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key ="" value=""/>
</appSettings>
<runtime>
<gcConcurrent enabled="true" />
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<publisherPolicy apply="yes" />
<probing privatePath="DLL" />
</assemblyBinding>
</runtime>
</configuration>