以程序: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
原文链接:https://www.f2er.com/javaschema/284335.html