当前位置:首页 >.NET > 正文内容

.NET重定向程序集版本-自定义Dll生成目录

大滑稽9年前 (2016-03-14).NET1689
C#中引用dll,一般直接添加引用,dll就在exe的目录下,看着有点乱,想将引用的dll归类到各个文件夹下引用

解决办法:

直接增加个应用程序配置文件,添加以下代码即可

<runtime>
   <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
     <probing privatePath="Drivers" />
   </assemblyBinding>
 </runtime>


更多详细介绍http://www.cnblogs.com/chenxizhang/archive/2013/03/14/2959688.html

扫描二维码推送至手机访问。

版权声明:本文由第★一★次发布,如需转载请注明出处。

本文链接:http://wpers.net/post/7.html

“.NET重定向程序集版本-自定义Dll生成目录 ” 的相关文章

Cbo控件数据源绑定

 //Cbo控件数据源绑定DataTable DtType = noteType.GetTypeList("");         ...

C#遍历控件的方法

首先,要想遍历,就必须找到你想找的表单里面的所有控件,然后一个个的逐一比对,当找到了你需要的控件的时候,再做你需要的操作。1、foreach方法foreach (Control control in ...

c#中分页显示数据

     //c#中分页显示数据    public partial class Form1 : Form    {  ...

C#修改浏览器主页

string key = @"HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main";      &n...

C#获得程序集

 //获得程序集System.Reflection.Assembly assem = System.Reflection.Assembly.GetExecutingAssembly();...

获取Color的几种方式

//获取Color的几种方式Color.FromKnownColor(KnownColor.ControlLight);Color.FromArgb(int r,int g,int b);Color.FromArgb(int a,int r...