摘要: 背景:我们的应用程序通常都是由多个程序集组成,例如一个 exe 程序依赖于多个 dll 程序集。在某些情况下,我们希望程序的分发能够简单,单独一个 exe 就能正常运行。这种情况下,就需要将 dll 依赖项合并到 exe 主程序中。 本文章给大家讲下非常好用的NuGet 包,Costura.Fody 阅读全文
posted @ 2020-05-21 16:37 朱志 阅读(2349) 评论(6) 推荐(6)
摘要: 概念:指令指导编译器在实际编译开始之前对信息进行预处理。 1.#if、#elif、#else、#endif #define Edition_1_1//它用于定义一系列成为符号的字符。 using System; using System.Collections.Generic; using Syst 阅读全文
posted @ 2020-05-14 13:27 朱志 阅读(252) 评论(0) 推荐(0)
摘要: public static void SaveCSV(DataTable dt, string fullPath) { var fi = new FileInfo(fullPath); if (!fi.Directory.Exists) { fi.Directory.Create(); } var 阅读全文
posted @ 2020-05-12 19:28 朱志 阅读(907) 评论(0) 推荐(0)
摘要: public void WriteLog(string strLog) { string sFilePath = AppDomain.CurrentDomain.BaseDirectory + "Log"; string sFileName = DateTime.Now.ToString("yyyy 阅读全文
posted @ 2020-05-12 19:23 朱志 阅读(1994) 评论(0) 推荐(0)
摘要: 1.首先是去百度智能云(http://ai.baidu.com/tech/face?track=cp:ainsem|pf:pc|pp:chanpin-renlianshibie|pu:renlianshibie-pinpai|ci:|kw:10002421)注册一个账号,填写有些相关的信息。 2.在 阅读全文
posted @ 2020-05-12 18:37 朱志 阅读(984) 评论(0) 推荐(1)
摘要: 1.首先添加NuGet:Quartz 2.具体代码: using Quartz; using Quartz.Impl; using System; using System.Threading.Tasks; namespace quaraz0902 { class Program { static 阅读全文
posted @ 2020-05-12 17:45 朱志 阅读(212) 评论(0) 推荐(0)
摘要: 1.首先添加NuGet:Oracle.ManagedDataAccess 2.配置连接数据库字符串:Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=***)(PORT=***))(CONNECT_DATA=(SERVICE_NAME=orc 阅读全文
posted @ 2020-05-12 17:18 朱志 阅读(273) 评论(0) 推荐(0)
摘要: 2.创建DataGridViewRow 对象Add添加行 阅读全文
posted @ 2019-09-25 15:54 朱志 阅读(12252) 评论(0) 推荐(0)