摘要: 问题 本地环境 服务器环境 Dockerfile 查找问题 解决方案 问题 今天(2921-11-09)VS2022 正式版发布了,我当然是闪现上去安装了最新版本。然后我用 VS2022 编译了我之前在 dotnet 6 rc2 的时候创建的 ASP.NET Core 6 的项目,用 docker 阅读全文
posted @ 2021-11-09 17:16 Kit_L 阅读(2624) 评论(0) 推荐(0) 编辑
摘要: 参考资料: 通过 LibMan 在 ASP.NET Core 中获取客户端库:https://docs.microsoft.com/zh-cn/aspnet/core/client-side/libman/?view=aspnetcore-5.0 使用 libman 安装客户端库 1. 新建项目 2 阅读全文
posted @ 2021-10-17 13:37 Kit_L 阅读(392) 评论(1) 推荐(2) 编辑
摘要: 参考资料: 书籍《ASP.NET Core IN ACTION SECOND EDITION》ch14、ch15 0. 照例吐槽 1. 什么是认证 Authentication 和授权 Authorization 2. ASP.NET Core 中的 users 和 claims Principal 阅读全文
posted @ 2021-09-05 23:21 Kit_L 阅读(715) 评论(1) 推荐(1) 编辑
摘要: 原文地址:https://www.cnblogs.com/Kit-L/p/15172128.html 参考资料 Serilog 官方文档:https://github.com/serilog/serilog/wiki serilog-aspnetcore 官方文档:https://github.co 阅读全文
posted @ 2021-08-22 14:12 Kit_L 阅读(1225) 评论(0) 推荐(0) 编辑
摘要: 参考资料: asp.net core 3.1 MVC/WebApi JSON 全局配置: https://cloud.tencent.com/developer/article/1597403 0. 照例吐槽 1. 引入包 2. 尝试使用 3. 全局配置(时间格式,忽略null,忽略循环引用) 4. 阅读全文
posted @ 2021-08-21 11:53 Kit_L 阅读(1377) 评论(0) 推荐(0) 编辑
摘要: 参考资料: 请问如何下载Microsoft Store UWP应用离线安装包? https://answers.microsoft.com/zh-hans/windows/forum/all/%E8%AF%B7%E9%97%AE%E5%A6%82%E4%BD%95%E4%B8%8B/82b06bc4 阅读全文
posted @ 2021-08-14 10:59 Kit_L 阅读(1181) 评论(1) 推荐(1) 编辑
摘要: 参考资料: MSDN官方文档: https://docs.microsoft.com/zh-cn/dotnet/api/system.linq.enumerable.join?view=net-5.0 https://docs.microsoft.com/zh-cn/dotnet/api/syste 阅读全文
posted @ 2021-06-02 00:17 Kit_L 阅读(2174) 评论(0) 推荐(1) 编辑
摘要: 参考资料: bilibili杨中科.NET视频教程 MSDN文档 先准备一下测试数据: Where: Count: Any: Single & SingleOrDefault: OrderBy & OrderByDescending & ThenBy & ThenByDescending : Ski 阅读全文
posted @ 2021-06-01 09:06 Kit_L 阅读(504) 评论(0) 推荐(0) 编辑
摘要: 距离上次记笔记static const readonly 究竟是什么?(1)又过去很久了,我已经又把这几个关键字忘得差不多了,这次又从网上和别人的博客中查到了一些资料,再来补充几条,作为笔记 (2)。 const 只能在定义时赋值,且不能用于自定义的类和对象 readonly 只能在定义时或在该类的 阅读全文
posted @ 2021-05-24 22:23 Kit_L 阅读(40) 评论(0) 推荐(0) 编辑
摘要: 参考资料: https://www.cnblogs.com/net-sky/p/10345566.html 《C# 7 核心编程》 因为一直区分不清什么时候该用什么访问控制修饰符,在这里稍微把这两天从网上查到的资料总结一下。 default(默认的访问修饰符): 方法的默认访问修饰符为 privat 阅读全文
posted @ 2021-05-24 22:12 Kit_L 阅读(1152) 评论(0) 推荐(0) 编辑