Masuit.Tools.Core
1.9.7.2
Advisory: https://github.com/advisories/GHSA-vh38-ghx6-vmvg | Severity: high |
See the version list below for details.
dotnet add package Masuit.Tools.Core --version 1.9.7.2
NuGet\Install-Package Masuit.Tools.Core -Version 1.9.7.2
<PackageReference Include="Masuit.Tools.Core" Version="1.9.7.2" />
paket add Masuit.Tools.Core --version 1.9.7.2
#r "nuget: Masuit.Tools.Core, 1.9.7.2"
// Install Masuit.Tools.Core as a Cake Addin #addin nuget:?package=Masuit.Tools.Core&version=1.9.7.2 // Install Masuit.Tools.Core as a Cake Tool #tool nuget:?package=Masuit.Tools.Core&version=1.9.7.2
包含一些常用的操作类,大都是静态类,加密解密,反射操作,硬件信息,字符串扩展方法,日期时间扩展操作,大文件拷贝,图像裁剪,html处理,验证码、NoSql等常用封装。
示例代码:
1.检验字符串是否是Email
bool isEmail="1170397736@qq.com".MatchEmail();
2.获取线程内唯一对象
CallContext<T>.GetData("db");
3.获取当前请求上下文
var context=HttpContext2.Current;
4.获取IP详细地理信息
var address="114.114.114.114".GetPhysicsAddress();
5.大文件操作
FileStream fs = new FileStream(@"D:\boot.vmdk", FileMode.OpenOrCreate, FileAccess.ReadWrite);
{
//fs.CopyToFile(@"D:\1.bak");//同步复制大文件
fs.CopyToFileAsync(@"D:\1.bak");//异步复制大文件
string md5 = fs.GetFileMD5Async().Result;//异步获取文件的MD5
}
6.html的防XSS处理:
string html = @"<link href="/Content/font-awesome/css" rel="stylesheet" />
<!--[if IE 7]>
<link href='/Content/font-awesome-ie7.min.css' rel='stylesheet'/>
<![endif]-->
<script src="/Scripts/modernizr"></script>
<div id="searchBox" role="search">
<form action="/packages" method="get">
<span class="user-actions"><a href="/users/account/LogOff">退出</a></span>
<input name="q" id="searchBoxInput" />
<input id="searchBoxSubmit" type="submit" value="Submit" />
</form>
</div>";
string s = html.HtmlSantinizerStandard();//清理后:<div><span><a href="/users/account/LogOff">退出</a></span></div>
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.0 is compatible. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
-
.NETCoreApp 2.0
- AngleSharp (>= 0.9.9.1)
- HtmlSanitizer (>= 4.0.183)
- Microsoft.AspNetCore.All (>= 2.0.5)
- Newtonsoft.Json (>= 11.0.1)
NuGet packages (19)
Showing the top 5 NuGet packages that depend on Masuit.Tools.Core:
Package | Downloads |
---|---|
BaseLibrary.ClassLibraryStand
Package Description |
|
L.52Abp.Application
52ABP框架Application应用层的基类 |
|
Masuit.Tools.AspNetCore
全龄段友好的C#万能工具库,码数吐司库(适用于.NET Core Web项目),不管你是菜鸟新手还是骨灰级玩家都能轻松上手,包含一些常用的操作类,大都是静态类,加密解密,反射操作,权重随机筛选算法,分布式短id,表达式树,linq扩展,文件压缩,多线程下载和FTP客户端,硬件信息,字符串扩展方法,日期时间扩展操作,中国农历,大文件拷贝,图像裁剪,验证码,断点续传,集合扩展等常用封装。包含一些AspNetCore常用的工具类、ModelBinder等。 官网教程:https://tools.masuit.org github:https://github.com/ldqk/Masuit.Tools |
|
BXJG.Utils
Package Description |
|
BlpIMSEFrame
BlpFrame是一套较为完整的微服务架构,整合SqlSugar、AOP、AutoMapper、常用帮助类、MiniProfiler、Swagger、Log4Net、WebApiClient、版本控制、JWT等功能模块。 |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on Masuit.Tools.Core:
Repository | Stars |
---|---|
Redns/North
一个易于搭建的图床服务
|
Version | Downloads | Last updated | |
---|---|---|---|
2024.6.0 | 532 | 11/13/2024 | |
2024.5.9 | 395 | 11/4/2024 | |
2024.5.8 | 1,838 | 9/27/2024 | |
2024.5.7 | 163 | 9/27/2024 | |
2024.5.6 | 1,741 | 8/15/2024 | |
2024.5.5 | 186 | 8/15/2024 | |
2024.5.4 | 187 | 8/15/2024 | |
2024.5.3 | 358 | 8/14/2024 | |
2024.5.2 | 371 | 8/10/2024 | |
2024.5.1 | 229 | 8/9/2024 | |
2024.5.0 | 239 | 8/8/2024 | |
2024.4.6-beta2 | 161 | 8/7/2024 | |
2024.4.6-beta | 164 | 8/7/2024 | |
2024.4.6-alpha2 | 151 | 8/7/2024 | |
2024.4.6-alpha | 149 | 8/7/2024 | |
2024.4.5 | 1,047 | 7/26/2024 | |
2024.4.4 | 167 | 7/25/2024 | |
2024.4.3 | 548 | 7/17/2024 | |
2024.4.2 | 860 | 7/6/2024 | |
2024.4.1 | 417 | 7/2/2024 | |
2024.4.0 | 264 | 7/1/2024 | |
2024.3.4 | 4,698 | 5/11/2024 | |
2024.3.3 | 1,813 | 5/10/2024 | |
2024.3.2 | 208 | 5/9/2024 | |
2024.3.1 | 201 | 5/9/2024 | |
2024.3.0 | 208 | 5/9/2024 | |
2024.2.0 | 2,563 | 4/30/2024 | |
2024.1.0 | 1,184 | 4/12/2024 | |
2.6.9.9 | 1,081 | 4/2/2024 | |
2.6.9.8 | 908 | 3/22/2024 | |
2.6.9.7 | 709 | 3/21/2024 | |
2.6.9.6 | 275 | 3/21/2024 | |
2.6.9.5 | 296 | 3/20/2024 | |
2.6.9.4 | 877 | 3/11/2024 | |
2.6.9.3 | 608 | 3/7/2024 | |
2.6.9.2 | 665 | 2/22/2024 | |
2.6.9.1 | 713 | 2/3/2024 | |
2.6.9 | 539 | 1/30/2024 | |
2.6.8.9 | 708 | 1/19/2024 | |
2.6.8.8 | 977 | 1/11/2024 | |
2.6.8.7 | 1,310 | 12/29/2023 | |
2.6.8.6 | 810 | 12/28/2023 | |
2.6.8.5 | 908 | 12/22/2023 | |
2.6.8.4 | 786 | 12/17/2023 | |
2.6.8.3 | 684 | 12/15/2023 | |
2.6.8.2 | 1,594 | 12/1/2023 | |
2.6.8.1 | 8,161 | 11/22/2023 | |
2.6.8 | 860 | 11/17/2023 | |
2.6.7.5 | 4,084 | 11/5/2023 | |
2.6.7.4 | 1,987 | 10/25/2023 | |
2.6.7.3 | 1,048 | 10/16/2023 | |
2.6.7.2 | 1,592 | 9/20/2023 | |
2.6.7.1 | 1,166 | 9/14/2023 | |
2.6.7 | 848 | 9/12/2023 | |
2.6.6.9 | 904 | 9/9/2023 | |
2.6.6.8 | 833 | 9/7/2023 | |
2.6.6.7 | 822 | 9/7/2023 | |
2.6.6.6 | 836 | 9/6/2023 | |
2.6.6.5 | 767 | 9/6/2023 | |
2.6.6.4 | 784 | 9/5/2023 | |
2.6.6.3 | 2,302 | 8/31/2023 | |
2.6.6.2 | 1,048 | 8/27/2023 | |
2.6.6.1 | 1,220 | 8/18/2023 | |
2.6.6 | 889 | 8/15/2023 | |
2.6.5 | 843 | 8/14/2023 | |
2.6.4.1 | 883 | 8/11/2023 | |
2.6.4 | 1,160 | 8/3/2023 | |
2.6.3.1 | 1,285 | 7/20/2023 | |
2.6.3 | 1,531 | 7/18/2023 | |
2.6.2.10 | 1,507 | 7/14/2023 | |
2.6.2.9 | 1,121 | 7/10/2023 | |
2.6.2.8 | 961 | 7/9/2023 | |
2.6.2.7 | 909 | 7/6/2023 | |
2.6.2.6 | 903 | 7/6/2023 | |
2.6.2.5 | 1,689 | 6/20/2023 | |
2.6.2.4 | 867 | 6/19/2023 | |
2.6.2.3 | 1,329 | 6/9/2023 | |
2.6.2.2 | 832 | 6/9/2023 | |
2.6.2.1 | 1,065 | 6/1/2023 | |
2.6.2 | 3,490 | 5/24/2023 | |
2.6.1 | 2,509 | 5/6/2023 | |
2.6.0.2 | 2,726 | 4/19/2023 | |
2.6.0.1 | 998 | 4/18/2023 | |
2.6.0 | 1,852 | 4/18/2023 | |
2.5.9.9 | 1,617 | 4/14/2023 | |
2.5.9.8 | 1,090 | 4/14/2023 | |
2.5.9.7 | 1,270 | 4/13/2023 | |
2.5.9.6 | 1,966 | 4/11/2023 | |
2.5.9.5 | 1,168 | 4/8/2023 | |
2.5.9.4 | 1,919 | 3/22/2023 | |
2.5.9.3 | 2,762 | 3/4/2023 | |
2.5.9.2 | 3,879 | 2/4/2023 | |
2.5.9.1 | 3,997 | 12/22/2022 | |
2.5.9 | 1,528 | 12/16/2022 | |
2.5.9-beta | 928 | 12/14/2022 | |
2.5.8.3 | 2,395 | 12/10/2022 | |
2.5.8.2 | 2,082 | 12/6/2022 | |
2.5.8.1 | 2,064 | 12/1/2022 | |
2.5.8 | 3,477 | 11/23/2022 | |
2.5.7.7 | 1,719 | 11/18/2022 | |
2.5.7.6 | 1,703 | 11/15/2022 | |
2.5.7.5 | 1,778 | 11/10/2022 | |
2.5.7.4 | 2,095 | 11/10/2022 | |
2.5.7.3 | 1,539 | 11/9/2022 | |
2.5.7.2 | 1,775 | 11/7/2022 | |
2.5.7.1 | 4,516 | 11/3/2022 | |
2.5.7 | 1,573 | 11/3/2022 | |
2.5.6.3 | 7,684 | 10/25/2022 | |
2.5.6.2 | 2,392 | 10/24/2022 | |
2.5.6.1 | 1,656 | 10/24/2022 | |
2.5.6 | 3,909 | 10/18/2022 | |
2.5.5.1 | 3,322 | 10/6/2022 | |
2.5.5 | 3,763 | 9/17/2022 | |
2.5.4.3 | 3,216 | 9/6/2022 | |
2.5.4.2 | 1,797 | 9/3/2022 | |
2.5.4.1 | 1,657 | 9/3/2022 | |
2.5.4 | 1,814 | 8/31/2022 | |
2.5.3 | 5,828 | 8/25/2022 | |
2.5.3-beta | 1,330 | 8/4/2022 | |
2.5.2 | 18,310 | 7/4/2022 | |
2.5.1 | 1,805 | 7/2/2022 | |
2.5.0.2 | 1,733 | 7/1/2022 | |
2.5.0.1 | 1,662 | 7/1/2022 | |
2.5.0 | 2,511 | 6/28/2022 | |
2.4.9.4 | 8,516 | 6/21/2022 | |
2.4.9.3 | 2,001 | 6/14/2022 | |
2.4.9.2 | 3,305 | 6/7/2022 | |
2.4.9.1 | 1,711 | 6/7/2022 | |
2.4.9 | 1,766 | 6/7/2022 | |
2.4.8.10 | 3,146 | 5/26/2022 | |
2.4.8.9 | 1,779 | 5/25/2022 | |
2.4.8.8 | 1,887 | 5/25/2022 | |
2.4.8.7 | 1,810 | 5/24/2022 | |
2.4.8.6 | 3,368 | 4/25/2022 | |
2.4.8.5 | 2,481 | 4/18/2022 | |
2.4.8.4 | 1,812 | 4/15/2022 | |
2.4.8.3 | 2,520 | 4/1/2022 | |
2.4.8.2 | 2,405 | 3/23/2022 | |
2.4.8.1 | 1,874 | 3/23/2022 | |
2.4.8 | 1,972 | 3/23/2022 | |
2.4.7.9 | 3,269 | 3/17/2022 | |
2.4.7.8 | 2,947 | 3/8/2022 | |
2.4.7.7 | 1,532 | 3/7/2022 | |
2.4.7.6 | 2,166 | 3/1/2022 | |
2.4.7.5 | 2,957 | 2/9/2022 | |
2.4.7.4 | 1,809 | 1/25/2022 | |
2.4.7.3 | 1,762 | 1/18/2022 | |
2.4.7.2 | 3,672 | 1/17/2022 | |
2.4.7.1 | 1,747 | 1/13/2022 | |
2.4.7 | 1,755 | 1/12/2022 | |
2.4.6.5 | 1,854 | 1/6/2022 | |
2.4.6.4 | 1,731 | 1/4/2022 | |
2.4.6.3 | 1,798 | 1/4/2022 | |
2.4.6.2 | 1,688 | 1/4/2022 | |
2.4.6.1 | 1,866 | 12/29/2021 | |
2.4.6 | 2,142 | 12/29/2021 | |
2.4.5.5 | 3,802 | 12/8/2021 | |
2.4.5.3 | 2,887 | 11/23/2021 | |
2.4.5.2 | 2,743 | 11/9/2021 | |
2.4.5.1 | 2,481 | 11/4/2021 | |
2.4.4.8 | 2,571 | 10/16/2021 | |
2.4.4.7 | 2,010 | 9/29/2021 | |
2.4.4.6 | 11,692 | 9/24/2021 | |
2.4.4.5 | 1,778 | 9/24/2021 | |
2.4.4.4 | 2,140 | 9/17/2021 | |
2.4.4.3 | 1,722 | 9/17/2021 | |
2.4.4.2 | 1,674 | 9/17/2021 | |
2.4.4.1 | 2,078 | 9/7/2021 | |
2.4.4 | 1,698 | 9/6/2021 | |
2.4.3.9 | 7,961 | 8/10/2021 | |
2.4.3.8 | 1,980 | 8/3/2021 | |
2.4.3.7 | 2,866 | 7/8/2021 | |
2.4.3.6 | 1,994 | 6/25/2021 | |
2.4.3.5 | 2,564 | 5/18/2021 | |
2.4.3.4 | 65,447 | 5/6/2021 | |
2.4.3.3 | 1,943 | 4/17/2021 | |
2.4.3.2 | 2,001 | 4/2/2021 | |
2.4.3.1 | 1,751 | 4/1/2021 | |
2.4.3 | 2,699 | 3/26/2021 | |
2.4.2.10 | 1,857 | 3/26/2021 | |
2.4.2.9 | 1,883 | 3/23/2021 | |
2.4.2.8 | 1,828 | 3/19/2021 | |
2.4.2.7 | 2,003 | 3/11/2021 | |
2.4.2.6 | 1,843 | 3/10/2021 | |
2.4.2.5 | 1,852 | 3/6/2021 | |
2.4.2.4 | 2,035 | 2/26/2021 | |
2.4.2.3 | 1,846 | 2/19/2021 | |
2.4.2.1 | 1,942 | 1/26/2021 | |
2.4.2 | 1,955 | 1/23/2021 | |
2.4.1.5 | 2,073 | 1/12/2021 | |
2.4.1.4 | 1,798 | 1/11/2021 | |
2.4.1.3 | 1,964 | 12/25/2020 | |
2.4.1.2 | 2,067 | 12/18/2020 | |
2.4.1.1 | 7,283 | 12/11/2020 | |
2.4.1 | 2,052 | 11/17/2020 | |
2.4.0 | 2,092 | 11/11/2020 | |
2.3.2.6 | 2,053 | 11/10/2020 | |
2.3.2.5 | 1,938 | 11/10/2020 | |
2.3.2.4 | 1,911 | 11/10/2020 | |
2.3.2.3 | 1,816 | 11/10/2020 | |
2.3.2.2 | 1,898 | 11/3/2020 | |
2.3.2.1 | 1,861 | 11/3/2020 | |
2.3.2 | 2,578 | 10/28/2020 | |
2.3.1.10 | 2,129 | 9/28/2020 | |
2.3.1.9 | 1,920 | 9/27/2020 | |
2.3.1.8 | 1,834 | 9/22/2020 | |
2.3.1.7 | 1,945 | 9/20/2020 | |
2.3.1.6 | 1,865 | 9/17/2020 | |
2.3.1.6-preview | 1,245 | 9/17/2020 | |
2.3.1.5 | 1,958 | 9/11/2020 | |
2.3.1.4 | 1,993 | 9/3/2020 | |
2.3.1.3 | 1,908 | 9/3/2020 | |
2.3.1.1 | 2,155 | 8/21/2020 | |
2.3.1 | 1,931 | 8/19/2020 | |
2.3.0 | 1,923 | 8/18/2020 | |
2.2.9.6 | 1,890 | 8/17/2020 | |
2.2.9.5 | 1,994 | 8/11/2020 | |
2.2.9.4 | 1,897 | 8/11/2020 | |
2.2.9.3 | 1,962 | 8/6/2020 | |
2.2.9.2 | 2,067 | 8/1/2020 | |
2.2.9.1 | 2,075 | 7/14/2020 | |
2.2.9 | 1,874 | 7/13/2020 | |
2.2.8.9 | 2,379 | 5/2/2020 | |
2.2.8.8 | 17,721 | 4/15/2020 | |
2.2.8.7 | 1,897 | 4/15/2020 | |
2.2.8.6 | 2,072 | 3/22/2020 | |
2.2.8.5 | 1,857 | 3/20/2020 | |
2.2.8.4 | 2,049 | 3/1/2020 | |
2.2.8.3 | 2,024 | 2/29/2020 | |
2.2.8.2 | 2,009 | 1/16/2020 | |
2.2.8.1 | 1,955 | 1/13/2020 | |
2.2.8 | 1,886 | 1/4/2020 | |
2.2.7.6 | 1,929 | 12/20/2019 | |
2.2.7.4 | 2,010 | 12/16/2019 | |
2.2.7.3 | 2,190 | 10/30/2019 | |
2.2.7.1 | 1,917 | 10/29/2019 | |
2.2.7 | 1,954 | 10/20/2019 | |
2.2.6.4 | 2,886 | 10/16/2019 | |
2.2.6.3 | 3,034 | 8/2/2019 | |
2.2.6.2 | 2,896 | 6/9/2019 | |
2.2.6.1 | 2,902 | 4/27/2019 | |
2.2.6 | 2,717 | 4/9/2019 | |
2.2.5.1 | 3,011 | 3/28/2019 | |
2.2.5 | 2,719 | 3/20/2019 | |
2.2.4.6 | 2,974 | 2/10/2019 | |
2.2.4.5 | 2,927 | 1/28/2019 | |
2.2.4.4 | 2,857 | 1/27/2019 | |
2.2.4.3 | 2,878 | 1/25/2019 | |
2.2.4 | 2,893 | 1/19/2019 | |
2.2.3.5 | 2,918 | 1/18/2019 | |
2.2.3.4 | 2,891 | 1/6/2019 | |
2.2.3.3 | 2,889 | 1/3/2019 | |
2.2.3.1 | 2,923 | 1/3/2019 | |
2.2.3 | 2,969 | 1/2/2019 | |
2.2.2.2 | 2,968 | 1/2/2019 | |
2.2.2.1 | 2,906 | 1/2/2019 | |
2.2.2 | 2,868 | 12/31/2018 | |
2.2.0 | 3,675 | 12/29/2018 | |
2.1.6.1 | 2,891 | 12/25/2018 | |
2.1.6 | 2,766 | 12/25/2018 | |
2.1.5.2 | 2,788 | 12/24/2018 | |
2.1.5.1 | 3,066 | 12/22/2018 | |
2.1.5 | 3,008 | 12/21/2018 | |
2.1.4.3 | 3,151 | 12/15/2018 | |
2.1.4.2 | 2,803 | 12/15/2018 | |
2.1.4.1 | 3,017 | 11/30/2018 | |
2.1.4 | 2,767 | 11/27/2018 | |
2.1.3.1 | 2,882 | 11/23/2018 | |
2.1.3 | 2,737 | 11/20/2018 | |
2.1.2.1 | 2,864 | 11/9/2018 | |
2.1.2 | 2,863 | 11/9/2018 | |
2.1.1.1 | 3,006 | 10/30/2018 | |
2.1.1 | 3,289 | 9/22/2018 | |
2.1.0 | 3,086 | 9/6/2018 | |
2.0.1 | 3,087 | 7/26/2018 | |
2.0.0 | 3,204 | 7/26/2018 | |
1.9.11 | 3,107 | 7/10/2018 | |
1.9.10 | 3,185 | 6/27/2018 | |
1.9.9 | 3,140 | 6/6/2018 | |
1.9.8 | 3,198 | 5/9/2018 | |
1.9.7.4 | 3,420 | 4/21/2018 | |
1.9.7.3 | 3,300 | 4/21/2018 | |
1.9.7.2 | 3,402 | 4/21/2018 | |
1.9.7.1 | 3,158 | 4/16/2018 | |
1.9.7 | 3,111 | 4/16/2018 | |
1.9.6 | 3,258 | 4/14/2018 | |
1.9.5.4 | 3,145 | 4/2/2018 | |
1.9.5.3 | 3,142 | 4/2/2018 | |
1.9.5.2 | 3,181 | 4/1/2018 | |
1.9.5.1 | 3,250 | 3/31/2018 | |
1.9.5 | 3,316 | 3/25/2018 | |
1.9.4.1 | 3,217 | 3/17/2018 | |
1.9.4 | 3,159 | 3/17/2018 | |
1.9.3.3 | 3,166 | 3/14/2018 | |
1.9.3.2 | 3,212 | 3/13/2018 | |
1.9.3.1 | 3,334 | 3/11/2018 | |
1.9.3 | 3,304 | 3/11/2018 | |
1.9.2 | 3,358 | 3/11/2018 | |
1.9.1.4 | 3,259 | 3/9/2018 | |
1.9.1.3 | 3,147 | 3/9/2018 | |
1.9.1.2 | 3,311 | 3/8/2018 | |
1.9.1.1 | 3,126 | 3/8/2018 | |
1.9.1 | 2,839 | 3/8/2018 | |
1.9.0 | 3,259 | 3/7/2018 | |
1.8.9.1 | 2,391 | 3/3/2018 | |
1.8.9 | 2,453 | 2/20/2018 | |
1.8.8 | 2,505 | 2/3/2018 | |
1.8.7 | 2,792 | 1/13/2018 | |
1.8.6 | 2,515 | 1/10/2018 | |
1.8.5 | 2,640 | 1/9/2018 | |
1.8.4 | 2,567 | 1/9/2018 | |
1.8.3 | 2,371 | 1/8/2018 | |
1.8.2 | 2,556 | 1/5/2018 | |
1.8.1 | 2,666 | 1/5/2018 | |
1.8.0 | 2,481 | 12/22/2017 | |
1.7.9 | 2,647 | 12/8/2017 | |
1.7.7 | 2,335 | 11/18/2017 | |
1.0.0 | 2,347 | 8/23/2017 |
如有问题请联系QQ:1170397736,或者到项目的github反馈问题,详细的API文档在github上:https://github.com/ldqk/Masuit.Tools