.NET Framework项目如何加载根目录的子目录下的dll文件
2016-09-04 19:43
351 查看
Specifies application base subdirectories for the common language runtime to search when loading assemblies.
AttributeDescriptionprivatePathRequired attribute.
Specifies subdirectories of the application’s base directory that might contain assemblies. Delimit each subdirectory with a semicolon.
其中描述翻译为:指定应用程序的根目录的子目录,可能包含程序集。划用分号隔开每个子目录。
Example
The following example shows how to specify application base subdirectories the runtime should search for assemblies.
参考:https://msdn.microsoft.com/en-us/library/823z9h8w(v=vs.110).aspx
<configuration> <runtime> <assemblyBinding> <probing>
AttributeDescriptionprivatePathRequired attribute.
Specifies subdirectories of the application’s base directory that might contain assemblies. Delimit each subdirectory with a semicolon.
其中描述翻译为:指定应用程序的根目录的子目录,可能包含程序集。划用分号隔开每个子目录。
Example
The following example shows how to specify application base subdirectories the runtime should search for assemblies.
<configuration> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <probing privatePath="bin;bin2\subbin;bin3"/> </assemblyBinding> </runtime> </configuration>
参考:https://msdn.microsoft.com/en-us/library/823z9h8w(v=vs.110).aspx
相关文章推荐
- 前端页面完成后如何放在IDEA项目工程的目录下能正确加载css样式
- IDEA中MAVEN项目有多个子目录,如何加载构建
- 如何获得某个目录下所有的文件名,包括子目录
- [Linux] 如何让linux加载当前目录的动态库
- 如何让VC在编译ARX项目时自动通知AutoCAD卸载ARX程序,并在编译完成后自动加载新编译的ARX程序
- shell编程之如何遍历进入当前目录下的所有子目录
- 如何touch一个目录及其下所有嵌套子目录中的文件?
- 如何在运行时加载不处于应用程序目录下的assembly
- iphone 项目中如何加载本地html文件到uiwebview
- C# Setup项目 如何修改默认程序目录(安装路径)
- 如何删除某个目录下(包含子目录下)的某个名字的文件
- Maven项目中如何将自定义标签的tld文件添加到META-INF目录下
- 如何列出当前目录下所有的JSP文件(含子目录)
- 如何让linux加载当前目录的动态库
- 如何创建快捷方式(包括在任意磁盘根目录及子目录位置创建文件,目录甚至我的电脑的快捷方式)
- C# Setup项目 如何修改默认程序目录(安装路径)
- [Linux] 如何让linux加载当前目录的动态库
- JAVA 程序中如何拷贝一个目录下的文件及子目录到另一个目录,如何获取系统环境变量等...
- 如何以根目录启动WEB项目进行测试
- 如何获取一个目录下包含子目录内的所有文件名,并保存在一个数组中或XML文档里