DNLiCore_Utility 1.0.4
See the version list below for details.
dotnet add package DNLiCore_Utility --version 1.0.4
NuGet\Install-Package DNLiCore_Utility -Version 1.0.4
<PackageReference Include="DNLiCore_Utility" Version="1.0.4" />
paket add DNLiCore_Utility --version 1.0.4
#r "nuget: DNLiCore_Utility, 1.0.4"
// Install DNLiCore_Utility as a Cake Addin #addin nuget:?package=DNLiCore_Utility&version=1.0.4 // Install DNLiCore_Utility as a Cake Tool #tool nuget:?package=DNLiCore_Utility&version=1.0.4
--------------------------------------介绍说明---------------------------------------------
DNLiCore_Unitility是基于.NetCore SDK2.2下的一个工具类,该工具类包括一些基础的帮助api
--------------------------------------使用说明---------------------------------------------
1.通过Nuget安装DNLiCore_Utility工具类
2.直接在代码中调用,例如写日志 DNLiCore_Utility_Log.NLogHelper.Warn("Warn");
--------------------------------------Api接口说明---------------------------------------------
1.Email:DNLiCore_Utility_Email
1.1 EmailHelper.Send(); //发送邮件
1.2 EmailHelper.Init(); //初始化邮件
2.Excel:DNLiCore_Utility_Excel
2.1 ExcelHelper.DataTableReport(); //DataTable导出excel
2.2 ExcelHelper.readExcelPackageToDataTable() //Excel导入DataTable
3.二维码:DNLiCore_Utility_Qrcode
3.1 QrCodeHelper.CreateQrCode(); //创造二维码
4.加密解密:DNLiCore_Utility_Encrypt
4.1 EncryptHelper.MD5(); //MD5加密
4.2 EncryptHelper.AESEncrypt(); //AES加密
4.3 EncryptHelper.AESDecrypt(); //AES解密
4.4 EncryptHelper.DESEncrypt(); //DES加密
4.5 EncryptHelper.DESDecrypt(); //DES解密
4.6 EncryptHelper.Base64Encrypt(); //Base64加密
4.7 EncryptHelper.Base64Decrypt(); //Base64解密
5.日志:DNLiCore_Utility_Log
5.1:NLogHelper.Info(); //信息输出
5.2:NLogHelper.Warn(); //警告信息输出
5.3:NLogHelper.Error(); //错误信息输出
5.4:NLogHelper.Fatal(); //非常严重的错误信息输出
5.5:FileTxtLogs.WriteLog(); //写操作日志文件
5.6:FileTxtLogs.Warnings(); //警告日志
5.7:FileTxtLogs.ErrorLog(); //错误日志
5.8:FileTxtLogs.Debug(); //调试日志
6.序列化:DNLiCore_Utility_Json
6.1:JsonHelper.ConvertModelToString(); //实体转为json字符串
6.2:JsonHelper.ConverStringToModel(string value)(); //json字符串转实体
7.Respone:DNLiCore_Utility_Respone
7.1:ResponeHelper.ResponeMsg();//基础服务端下发数据格式
7.2:ResponeHelper.ResponeMsgModel();//基础服务端下发数据格式(不同层调用)
8.Html:
8.1:Nsoup使用 NSoup.Nodes.Document document= NSoup.NSoupClient.Parse(new Uri("http://www.baidu.com/"), 60);
9.Http:
9.1:HttpHelper.HttpPost();//同步Post请求
9.2:HttpHelper.HttpPostAsync();//异步Post请求
9.3:HttpHelper.HttpGet();//同步Get请求
9.4:HttpHelper.HttpGetAsync();//同步Get请求
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.2 is compatible. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
-
- EPPlus.Core (>= 1.5.4)
- Newtonsoft.Json (>= 12.0.1)
- NLog (>= 4.5.11)
- NLog.Config (>= 4.5.11)
- NSoupCore (>= 1.0.0)
- QRCoder (>= 1.3.5)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Summary of changes made in this release of the package.