摘要: 为没有源码的DLL文件添加强名称 如果项目中引用了其他没有源码的dll文件,并且此dll文件是没有强名称的程序集,则编译时会出现类似 "Assembly generation failed -- 引用的程序集 'xxxxxxxxxxx' 没有强名称" 这样的错误。我这里引用的是Interop.Scr 阅读全文
posted @ 2017-04-12 16:31 麦田HH 阅读(277) 评论(0) 推荐(0) 编辑
摘要: /// /// 获取网页的HTML码 /// /// 链接地址 /// 编码类型 /// public static string GetHtmlStr(string url, string encoding) { string htmlStr = ""; if (!String.IsNullOrEmpty(url)) { WebRequest re... 阅读全文
posted @ 2017-04-12 14:44 麦田HH 阅读(302) 评论(0) 推荐(0) 编辑