摘要: 通过对比发现.netcore项目 中项目文件的生成事件对应的配置文件和.net framework项目有了一些变化如下图: 改成下图这样就可以了。 阅读全文
posted @ 2020-03-19 17:48 撩剑势 阅读(293) 评论(0) 推荐(0) 编辑
摘要: public static void ConvertPicture2PDF(string jpgfile, string pdf) { try { var document = new Document(iTextSharp.text.PageSize.A4, 25, 25, 25, 25); us 阅读全文
posted @ 2018-01-29 10:23 撩剑势 阅读(705) 评论(0) 推荐(1) 编辑
摘要: 代码中需引用SevenZipSharp.dll,项目路径下需存在7z.dll public static string UnCompress7zZip(string str待解压文件, string str解压文件夹, string str密码=null) { String str7zRunPath 阅读全文
posted @ 2018-01-29 10:06 撩剑势 阅读(1867) 评论(0) 推荐(0) 编辑
摘要: cmd regedit打开注册表,进入到[HKEY_USERS\.DEFAULT\Control Panel\International] ,然后1、将键 sDate 的值由 / 改为 - 2、将键 sShortDate 的值由 yyyy/M/d 改为 yyyy-M-d (注:如果是yyyy/M/d 阅读全文
posted @ 2018-01-26 16:22 撩剑势 阅读(513) 评论(0) 推荐(0) 编辑