摘要: 不知道出于什么目的,.netcore项目默认编译时生成的文件要多加一层"netcoreapp3.0"或"netcoreapp2.1",这应该不符合大多数开发者的习惯吧? 不过微软为我们提供了配置来取消这个目录。 编辑项目文件 <PropertyGroup> <AppendTargetFramewor 阅读全文
posted @ 2020-02-06 23:41 陈国良 阅读(895) 评论(0) 推荐(1) 编辑
摘要: 有时候我们想克隆一个List去做别的事,而不影响原来的List,我们直接在list后面加上小点点,发现并没有Clone这样的扩展函数。这时候就只有自己扩展了。 尝试了三种方式,测试都通过了,至于性能方面我还没有做测试。 一、反射 二、序列化(依赖Newtonsoft.Json) 三、序列化(Bina 阅读全文
posted @ 2019-01-21 23:30 陈国良 阅读(715) 评论(0) 推荐(1) 编辑
摘要: .netcore 2.1.4的程序部署到IIS后报以下错误: HTTP Error 502.5 - Process Failure Common causes of this issue:The application process failed to startThe application p 阅读全文
posted @ 2018-09-29 23:58 陈国良 阅读(4734) 评论(0) 推荐(0) 编辑
摘要: 从第一次写GPS的服务端到现在,已经过去了八年时光。一直是用.net修修改改,从自己写的socket服务,到suppersocket,都是勉强在坚持着,没有真正的稳定过。 最近一段时间,服务端又出了两个问题: 1、UDP服务:System.Net.Sockets.SocketException (0 阅读全文
posted @ 2018-03-25 23:16 陈国良 阅读(956) 评论(0) 推荐(0) 编辑
摘要: GPS系统,因存储量过大,决定按天动态创建数据数据库,每天23点定时执行作业 阅读全文
posted @ 2016-09-17 10:15 陈国良 阅读(379) 评论(0) 推荐(0) 编辑
摘要: 前台代码: (另外还有几个Hidden控件) Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->管理员部门: ... 阅读全文
posted @ 2008-11-14 13:53 陈国良 阅读(482) 评论(0) 推荐(0) 编辑
摘要: Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System; using System.Data; using System.Configuration; using System.Collections; using Syst... 阅读全文
posted @ 2008-11-14 12:07 陈国良 阅读(390) 评论(2) 推荐(0) 编辑