摘要:Libman:库管理器(CSS/JS) ——类似 Nuget:包管理器(.NET) 库管理器(LibMan) 是一个轻量型客户端库获取工具。 LibMan 提供以下优势: 只会下载所需的库文件。 无需使用其他工具(例如Node.js、npm和WebPack),即可获取库中文件的子集。 可将文件放置在
阅读全文
随笔分类 - 003 C#
摘要:C# .NET 5.0 ASP .NET CORE Web API 项目 问题:创建项目后,无法添加类、控制器 解决方式: 第一步:启动,Visual Studio Installer,如下所示: 第二步:单击修改
阅读全文
摘要:解决C# .NET 5 Json 格式返回值首字母变小写 背景: 处理方法: 在Startup类的ConfigureServices()方法中进行配置,DefaultContractResolver() 原样输出,返回的 json 与后台定义一致 public void ConfigureServi
阅读全文
摘要:// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWeb
阅读全文
摘要:{ "$schema": "http://json.schemastore.org/launchsettings.json", "iisSettings": { "windowsAuthentication": false, "anonymousAuthentication": true, "iis
阅读全文
摘要:基于VS2019,使用步骤: 方式一: 第一步:appsettings.json 定义配置项,可理解为定义对象属性,eg: { "Logging": { "LogLevel": { "Default": "Information", "Microsoft": "Warning", "Microsof
阅读全文
摘要:public string GetMacAdd(string str = "") { string mac = null; string strMac = string.Empty; try { ManagementObjectSearcher query = new ManagementObjec
阅读全文
摘要:数据脱敏,此处以姓名、身份证为例 /// <summary> /// 姓名敏感处理 /// </summary> /// <param name="fullName">姓名</param> /// <returns>脱敏后的姓名</returns> public string SetSensitiv
阅读全文
摘要:第一步,创建Winfrom窗体界面 第二步,Nuget安装CefSharp--67版本为例 第三步,实现,如下所示: <?xml version="1.0" encoding="utf-8" ?> <configuration> <startup> <supportedRuntime version
阅读全文
摘要:using System; using System.Configuration; namespace ConfigurationTool { /// <summary> /// 用于XML操作 /// </summary> public class ConfigurationHelper { //
阅读全文
摘要:字符串加密、解密算法包括: MD5、Des、Base64三种方式,详情如下所示: using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Security.Cry
阅读全文
摘要:using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Reflection; using System.Text; using System.Windows
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; namespace ZB.QueueSys.Comm
阅读全文
摘要:第一步:创建用于排序帮助类 using System; using System.Collections.Generic; using System.ComponentModel; using System.Reflection; namespace ZB.QueueSys.Common { pub
阅读全文
摘要:1.网站--新增网站/FTP站点——略 注意:更改合适的端口号,IP地址可设置为 全部未分配 2.新增完网站后进行修改 第一步:选择对应网站 第二步:点击——绑定 3.设置Framework版本 第一步:选择——应用程序池 第二步:选择对应的网站,设置对应的Framework版本 4.浏览——查看A
阅读全文

浙公网安备 33010602011771号