将.Net应用程序依赖的库文件部署到其他目录下
发布时间:2020-12-13 22:12:39 所属栏目:百科 来源:网络整理
导读:以程序:ReferenceClass.exe为例,引用myClass.dll; 1.程序编译成功后会生成ReferenceClass.exe.config文件; 2.打开ReferenceClass.exe.config文件,configuration元素下增加节点 runtime gcConcurrent enabled="true" / assemblyBinding xmlns="urn:schema
以程序:ReferenceClass.exe为例,引用myClass.dll; 1.程序编译成功后会生成ReferenceClass.exe.config文件; 2.打开ReferenceClass.exe.config文件,configuration元素下增加节点 <runtime> <gcConcurrent enabled="true" /> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <publisherPolicy apply="yes" /> <probing privatePath=".myClass" /> </assemblyBinding> </runtime> 3.在ReferenceClass.exe目录下新建文件件,把myClass.dll移到myClass文件夹中 4.至此大功告成!
资料: https://msdn.microsoft.com/zh-cn/library/yx7xezcf(v=vs.80).aspx http://www.csharpwin.com/csharpspace/9839r5399.shtml (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |