Masuit.Tools.Core 1.9.6

Details
Advisory: https://github.com/advisories/GHSA-vh38-ghx6-vmvg Severity: high
There is a newer version of this package available.
See the version list below for details.
dotnet add package Masuit.Tools.Core --version 1.9.6
NuGet\Install-Package Masuit.Tools.Core -Version 1.9.6
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Masuit.Tools.Core" Version="1.9.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Masuit.Tools.Core --version 1.9.6
#r "nuget: Masuit.Tools.Core, 1.9.6"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Masuit.Tools.Core as a Cake Addin
#addin nuget:?package=Masuit.Tools.Core&version=1.9.6

// Install Masuit.Tools.Core as a Cake Tool
#tool nuget:?package=Masuit.Tools.Core&version=1.9.6

包含一些常用的操作类,大都是静态类,加密解密,反射操作,硬件信息,字符串扩展方法,日期时间扩展操作,大文件拷贝,图像裁剪,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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (16)

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

BlpIMSEFrame

BlpFrame是一套较为完整的微服务架构,整合SqlSugar、AOP、AutoMapper、常用帮助类、MiniProfiler、Swagger、Log4Net、WebApiClient、版本控制、JWT等功能模块。

ZTC.RiSen.Sdk

七迈车-日森洗车机Sdk AspNetCore Net6

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.6.9.8 145 3/22/2024
2.6.9.7 136 3/21/2024
2.6.9.6 99 3/21/2024
2.6.9.5 133 3/20/2024
2.6.9.4 215 3/11/2024
2.6.9.3 201 3/7/2024
2.6.9.2 347 2/22/2024
2.6.9.1 407 2/3/2024
2.6.9 355 1/30/2024
2.6.8.9 509 1/19/2024
2.6.8.8 701 1/11/2024
2.6.8.7 1,018 12/29/2023
2.6.8.6 435 12/28/2023
2.6.8.5 687 12/22/2023
2.6.8.4 618 12/17/2023
2.6.8.3 520 12/15/2023
2.6.8.2 1,284 12/1/2023
2.6.8.1 3,190 11/22/2023
2.6.8 661 11/17/2023
2.6.7.5 1,748 11/5/2023
2.6.7.4 1,134 10/25/2023
2.6.7.3 848 10/16/2023
2.6.7.2 1,162 9/20/2023
2.6.7.1 946 9/14/2023
2.6.7 660 9/12/2023
2.6.6.9 741 9/9/2023
2.6.6.8 663 9/7/2023
2.6.6.7 649 9/7/2023
2.6.6.6 674 9/6/2023
2.6.6.5 612 9/6/2023
2.6.6.4 631 9/5/2023
2.6.6.3 1,687 8/31/2023
2.6.6.2 871 8/27/2023
2.6.6.1 940 8/18/2023
2.6.6 703 8/15/2023
2.6.5 685 8/14/2023
2.6.4.1 718 8/11/2023
2.6.4 989 8/3/2023
2.6.3.1 1,101 7/20/2023
2.6.3 1,356 7/18/2023
2.6.2.10 1,029 7/14/2023
2.6.2.9 954 7/10/2023
2.6.2.8 804 7/9/2023
2.6.2.7 760 7/6/2023
2.6.2.6 750 7/6/2023
2.6.2.5 1,484 6/20/2023
2.6.2.4 724 6/19/2023
2.6.2.3 1,154 6/9/2023
2.6.2.2 685 6/9/2023
2.6.2.1 896 6/1/2023
2.6.2 3,134 5/24/2023
2.6.1 2,299 5/6/2023
2.6.0.2 2,309 4/19/2023
2.6.0.1 825 4/18/2023
2.6.0 1,591 4/18/2023
2.5.9.9 1,346 4/14/2023
2.5.9.8 926 4/14/2023
2.5.9.7 1,126 4/13/2023
2.5.9.6 1,793 4/11/2023
2.5.9.5 990 4/8/2023
2.5.9.4 1,676 3/22/2023
2.5.9.3 2,527 3/4/2023
2.5.9.2 3,639 2/4/2023
2.5.9.1 3,753 12/22/2022
2.5.9 1,320 12/16/2022
2.5.9-beta 780 12/14/2022
2.5.8.3 2,213 12/10/2022
2.5.8.2 1,893 12/6/2022
2.5.8.1 1,890 12/1/2022
2.5.8 3,106 11/23/2022
2.5.7.7 1,532 11/18/2022
2.5.7.6 1,529 11/15/2022
2.5.7.5 1,607 11/10/2022
2.5.7.4 1,889 11/10/2022
2.5.7.3 1,363 11/9/2022
2.5.7.2 1,577 11/7/2022
2.5.7.1 3,740 11/3/2022
2.5.7 1,372 11/3/2022
2.5.6.3 7,313 10/25/2022
2.5.6.2 2,177 10/24/2022
2.5.6.1 1,475 10/24/2022
2.5.6 3,594 10/18/2022
2.5.5.1 3,145 10/6/2022
2.5.5 3,499 9/17/2022
2.5.4.3 2,785 9/6/2022
2.5.4.2 1,636 9/3/2022
2.5.4.1 1,497 9/3/2022
2.5.4 1,610 8/31/2022
2.5.3 5,527 8/25/2022
2.5.3-beta 1,142 8/4/2022
2.5.2 12,652 7/4/2022
2.5.1 1,598 7/2/2022
2.5.0.2 1,538 7/1/2022
2.5.0.1 1,483 7/1/2022
2.5.0 2,301 6/28/2022
2.4.9.4 6,573 6/21/2022
2.4.9.3 1,825 6/14/2022
2.4.9.2 3,104 6/7/2022
2.4.9.1 1,558 6/7/2022
2.4.9 1,612 6/7/2022
2.4.8.10 2,748 5/26/2022
2.4.8.9 1,600 5/25/2022
2.4.8.8 1,709 5/25/2022
2.4.8.7 1,534 5/24/2022
2.4.8.6 3,100 4/25/2022
2.4.8.5 2,314 4/18/2022
2.4.8.4 1,660 4/15/2022
2.4.8.3 2,332 4/1/2022
2.4.8.2 2,221 3/23/2022
2.4.8.1 1,693 3/23/2022
2.4.8 1,800 3/23/2022
2.4.7.9 3,111 3/17/2022
2.4.7.8 2,740 3/8/2022
2.4.7.7 1,399 3/7/2022
2.4.7.6 1,972 3/1/2022
2.4.7.5 2,640 2/9/2022
2.4.7.4 1,634 1/25/2022
2.4.7.3 1,586 1/18/2022
2.4.7.2 3,512 1/17/2022
2.4.7.1 1,574 1/13/2022
2.4.7 1,600 1/12/2022
2.4.6.5 1,704 1/6/2022
2.4.6.4 1,573 1/4/2022
2.4.6.3 1,661 1/4/2022
2.4.6.2 1,543 1/4/2022
2.4.6.1 1,709 12/29/2021
2.4.6 1,763 12/29/2021
2.4.5.5 3,602 12/8/2021
2.4.5.3 2,723 11/23/2021
2.4.5.2 2,573 11/9/2021
2.4.5.1 2,316 11/4/2021
2.4.4.8 2,387 10/16/2021
2.4.4.7 1,830 9/29/2021
2.4.4.6 11,284 9/24/2021
2.4.4.5 1,615 9/24/2021
2.4.4.4 1,938 9/17/2021
2.4.4.3 1,566 9/17/2021
2.4.4.2 1,534 9/17/2021
2.4.4.1 1,896 9/7/2021
2.4.4 1,549 9/6/2021
2.4.3.9 7,494 8/10/2021
2.4.3.8 1,841 8/3/2021
2.4.3.7 2,578 7/8/2021
2.4.3.6 1,836 6/25/2021
2.4.3.5 2,418 5/18/2021
2.4.3.4 60,179 5/6/2021
2.4.3.3 1,775 4/17/2021
2.4.3.2 1,817 4/2/2021
2.4.3.1 1,604 4/1/2021
2.4.3 2,525 3/26/2021
2.4.2.10 1,701 3/26/2021
2.4.2.9 1,720 3/23/2021
2.4.2.8 1,655 3/19/2021
2.4.2.7 1,849 3/11/2021
2.4.2.6 1,688 3/10/2021
2.4.2.5 1,688 3/6/2021
2.4.2.4 1,857 2/26/2021
2.4.2.3 1,686 2/19/2021
2.4.2.1 1,766 1/26/2021
2.4.2 1,789 1/23/2021
2.4.1.5 1,882 1/12/2021
2.4.1.4 1,645 1/11/2021
2.4.1.3 1,810 12/25/2020
2.4.1.2 1,884 12/18/2020
2.4.1.1 6,933 12/11/2020
2.4.1 1,906 11/17/2020
2.4.0 1,919 11/11/2020
2.3.2.6 1,921 11/10/2020
2.3.2.5 1,803 11/10/2020
2.3.2.4 1,727 11/10/2020
2.3.2.3 1,646 11/10/2020
2.3.2.2 1,742 11/3/2020
2.3.2.1 1,678 11/3/2020
2.3.2 2,396 10/28/2020
2.3.1.10 1,940 9/28/2020
2.3.1.9 1,773 9/27/2020
2.3.1.8 1,681 9/22/2020
2.3.1.7 1,780 9/20/2020
2.3.1.6 1,729 9/17/2020
2.3.1.6-preview 1,089 9/17/2020
2.3.1.5 1,779 9/11/2020
2.3.1.4 1,850 9/3/2020
2.3.1.3 1,787 9/3/2020
2.3.1.1 2,012 8/21/2020
2.3.1 1,772 8/19/2020
2.3.0 1,755 8/18/2020
2.2.9.6 1,708 8/17/2020
2.2.9.5 1,839 8/11/2020
2.2.9.4 1,771 8/11/2020
2.2.9.3 1,811 8/6/2020
2.2.9.2 1,887 8/1/2020
2.2.9.1 1,927 7/14/2020
2.2.9 1,718 7/13/2020
2.2.8.9 2,242 5/2/2020
2.2.8.8 16,467 4/15/2020
2.2.8.7 1,735 4/15/2020
2.2.8.6 1,904 3/22/2020
2.2.8.5 1,702 3/20/2020
2.2.8.4 1,912 3/1/2020
2.2.8.3 1,847 2/29/2020
2.2.8.2 1,841 1/16/2020
2.2.8.1 1,788 1/13/2020
2.2.8 1,749 1/4/2020
2.2.7.6 1,766 12/20/2019
2.2.7.4 1,829 12/16/2019
2.2.7.3 2,043 10/30/2019
2.2.7.1 1,741 10/29/2019
2.2.7 1,813 10/20/2019
2.2.6.4 2,617 10/16/2019
2.2.6.3 2,766 8/2/2019
2.2.6.2 2,651 6/9/2019
2.2.6.1 2,621 4/27/2019
2.2.6 2,504 4/9/2019
2.2.5.1 2,712 3/28/2019
2.2.5 2,474 3/20/2019
2.2.4.6 2,705 2/10/2019
2.2.4.5 2,669 1/28/2019
2.2.4.4 2,616 1/27/2019
2.2.4.3 2,664 1/25/2019
2.2.4 2,710 1/19/2019
2.2.3.5 2,655 1/18/2019
2.2.3.4 2,623 1/6/2019
2.2.3.3 2,639 1/3/2019
2.2.3.1 2,723 1/3/2019
2.2.3 2,720 1/2/2019
2.2.2.2 2,814 1/2/2019
2.2.2.1 2,720 1/2/2019
2.2.2 2,620 12/31/2018
2.2.0 3,176 12/29/2018
2.1.6.1 2,669 12/25/2018
2.1.6 2,532 12/25/2018
2.1.5.2 2,588 12/24/2018
2.1.5.1 2,825 12/22/2018
2.1.5 2,808 12/21/2018
2.1.4.3 2,911 12/15/2018
2.1.4.2 2,553 12/15/2018
2.1.4.1 2,744 11/30/2018
2.1.4 2,631 11/27/2018
2.1.3.1 2,676 11/23/2018
2.1.3 2,538 11/20/2018
2.1.2.1 2,654 11/9/2018
2.1.2 2,670 11/9/2018
2.1.1.1 2,746 10/30/2018
2.1.1 3,117 9/22/2018
2.1.0 2,870 9/6/2018
2.0.1 2,904 7/26/2018
2.0.0 2,925 7/26/2018
1.9.11 2,928 7/10/2018
1.9.10 2,946 6/27/2018
1.9.9 2,946 6/6/2018
1.9.8 2,922 5/9/2018
1.9.7.4 3,188 4/21/2018
1.9.7.3 3,044 4/21/2018
1.9.7.2 3,197 4/21/2018
1.9.7.1 2,945 4/16/2018
1.9.7 2,874 4/16/2018
1.9.6 3,044 4/14/2018
1.9.5.4 2,926 4/2/2018
1.9.5.3 2,964 4/2/2018
1.9.5.2 2,963 4/1/2018
1.9.5.1 2,957 3/31/2018
1.9.5 3,103 3/25/2018
1.9.4.1 3,069 3/17/2018
1.9.4 2,919 3/17/2018
1.9.3.3 2,976 3/14/2018
1.9.3.2 2,963 3/13/2018
1.9.3.1 3,027 3/11/2018
1.9.3 3,076 3/11/2018
1.9.2 3,072 3/11/2018
1.9.1.4 3,030 3/9/2018
1.9.1.3 2,966 3/9/2018
1.9.1.2 3,087 3/8/2018
1.9.1.1 2,908 3/8/2018
1.9.1 2,672 3/8/2018
1.9.0 3,019 3/7/2018
1.8.9.1 2,226 3/3/2018
1.8.9 2,264 2/20/2018
1.8.8 2,323 2/3/2018
1.8.7 2,612 1/13/2018
1.8.6 2,342 1/10/2018
1.8.5 2,489 1/9/2018
1.8.4 2,398 1/9/2018
1.8.3 2,180 1/8/2018
1.8.2 2,409 1/5/2018
1.8.1 2,512 1/5/2018
1.8.0 2,324 12/22/2017
1.7.9 2,478 12/8/2017
1.7.7 2,198 11/18/2017
1.0.0 2,147 8/23/2017

如有问题请联系QQ:1170397736,或者到项目的github反馈问题,详细的API文档在github上:https://github.com/ldqk/Masuit.Tools