Masuit.Tools.Core 1.8.9

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.8.9
NuGet\Install-Package Masuit.Tools.Core -Version 1.8.9
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.8.9" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Masuit.Tools.Core --version 1.8.9
#r "nuget: Masuit.Tools.Core, 1.8.9"
#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.8.9

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

包含一些常用的操作类,大都是静态类,加密解密,反射操作,硬件信息,字符串扩展方法,日期时间扩展操作,大文件拷贝,图像裁剪,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 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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
2024.2.0 86 4/30/2024
2024.1.0 327 4/12/2024
2.6.9.9 284 4/2/2024
2.6.9.8 253 3/22/2024
2.6.9.7 258 3/21/2024
2.6.9.6 160 3/21/2024
2.6.9.5 188 3/20/2024
2.6.9.4 575 3/11/2024
2.6.9.3 262 3/7/2024
2.6.9.2 424 2/22/2024
2.6.9.1 452 2/3/2024
2.6.9 408 1/30/2024
2.6.8.9 559 1/19/2024
2.6.8.8 772 1/11/2024
2.6.8.7 1,111 12/29/2023
2.6.8.6 485 12/28/2023
2.6.8.5 753 12/22/2023
2.6.8.4 672 12/17/2023
2.6.8.3 568 12/15/2023
2.6.8.2 1,378 12/1/2023
2.6.8.1 4,120 11/22/2023
2.6.8 707 11/17/2023
2.6.7.5 1,806 11/5/2023
2.6.7.4 1,257 10/25/2023
2.6.7.3 896 10/16/2023
2.6.7.2 1,236 9/20/2023
2.6.7.1 1,025 9/14/2023
2.6.7 720 9/12/2023
2.6.6.9 790 9/9/2023
2.6.6.8 711 9/7/2023
2.6.6.7 706 9/7/2023
2.6.6.6 730 9/6/2023
2.6.6.5 659 9/6/2023
2.6.6.4 677 9/5/2023
2.6.6.3 1,754 8/31/2023
2.6.6.2 920 8/27/2023
2.6.6.1 1,000 8/18/2023
2.6.6 763 8/15/2023
2.6.5 732 8/14/2023
2.6.4.1 781 8/11/2023
2.6.4 1,036 8/3/2023
2.6.3.1 1,151 7/20/2023
2.6.3 1,414 7/18/2023
2.6.2.10 1,089 7/14/2023
2.6.2.9 1,016 7/10/2023
2.6.2.8 851 7/9/2023
2.6.2.7 808 7/6/2023
2.6.2.6 795 7/6/2023
2.6.2.5 1,531 6/20/2023
2.6.2.4 767 6/19/2023
2.6.2.3 1,209 6/9/2023
2.6.2.2 735 6/9/2023
2.6.2.1 944 6/1/2023
2.6.2 3,185 5/24/2023
2.6.1 2,371 5/6/2023
2.6.0.2 2,486 4/19/2023
2.6.0.1 876 4/18/2023
2.6.0 1,660 4/18/2023
2.5.9.9 1,406 4/14/2023
2.5.9.8 987 4/14/2023
2.5.9.7 1,167 4/13/2023
2.5.9.6 1,832 4/11/2023
2.5.9.5 1,068 4/8/2023
2.5.9.4 1,744 3/22/2023
2.5.9.3 2,604 3/4/2023
2.5.9.2 3,691 2/4/2023
2.5.9.1 3,807 12/22/2022
2.5.9 1,387 12/16/2022
2.5.9-beta 831 12/14/2022
2.5.8.3 2,261 12/10/2022
2.5.8.2 1,955 12/6/2022
2.5.8.1 1,949 12/1/2022
2.5.8 3,155 11/23/2022
2.5.7.7 1,596 11/18/2022
2.5.7.6 1,600 11/15/2022
2.5.7.5 1,669 11/10/2022
2.5.7.4 1,954 11/10/2022
2.5.7.3 1,444 11/9/2022
2.5.7.2 1,637 11/7/2022
2.5.7.1 3,825 11/3/2022
2.5.7 1,436 11/3/2022
2.5.6.3 7,373 10/25/2022
2.5.6.2 2,258 10/24/2022
2.5.6.1 1,561 10/24/2022
2.5.6 3,654 10/18/2022
2.5.5.1 3,206 10/6/2022
2.5.5 3,571 9/17/2022
2.5.4.3 2,875 9/6/2022
2.5.4.2 1,698 9/3/2022
2.5.4.1 1,552 9/3/2022
2.5.4 1,685 8/31/2022
2.5.3 5,595 8/25/2022
2.5.3-beta 1,204 8/4/2022
2.5.2 13,005 7/4/2022
2.5.1 1,700 7/2/2022
2.5.0.2 1,613 7/1/2022
2.5.0.1 1,545 7/1/2022
2.5.0 2,349 6/28/2022
2.4.9.4 6,668 6/21/2022
2.4.9.3 1,895 6/14/2022
2.4.9.2 3,183 6/7/2022
2.4.9.1 1,602 6/7/2022
2.4.9 1,657 6/7/2022
2.4.8.10 2,805 5/26/2022
2.4.8.9 1,675 5/25/2022
2.4.8.8 1,783 5/25/2022
2.4.8.7 1,598 5/24/2022
2.4.8.6 3,172 4/25/2022
2.4.8.5 2,353 4/18/2022
2.4.8.4 1,710 4/15/2022
2.4.8.3 2,393 4/1/2022
2.4.8.2 2,276 3/23/2022
2.4.8.1 1,757 3/23/2022
2.4.8 1,868 3/23/2022
2.4.7.9 3,156 3/17/2022
2.4.7.8 2,823 3/8/2022
2.4.7.7 1,438 3/7/2022
2.4.7.6 2,042 3/1/2022
2.4.7.5 2,705 2/9/2022
2.4.7.4 1,695 1/25/2022
2.4.7.3 1,641 1/18/2022
2.4.7.2 3,576 1/17/2022
2.4.7.1 1,640 1/13/2022
2.4.7 1,644 1/12/2022
2.4.6.5 1,761 1/6/2022
2.4.6.4 1,622 1/4/2022
2.4.6.3 1,706 1/4/2022
2.4.6.2 1,597 1/4/2022
2.4.6.1 1,771 12/29/2021
2.4.6 1,834 12/29/2021
2.4.5.5 3,692 12/8/2021
2.4.5.3 2,780 11/23/2021
2.4.5.2 2,633 11/9/2021
2.4.5.1 2,377 11/4/2021
2.4.4.8 2,443 10/16/2021
2.4.4.7 1,910 9/29/2021
2.4.4.6 11,347 9/24/2021
2.4.4.5 1,676 9/24/2021
2.4.4.4 2,019 9/17/2021
2.4.4.3 1,625 9/17/2021
2.4.4.2 1,579 9/17/2021
2.4.4.1 1,954 9/7/2021
2.4.4 1,604 9/6/2021
2.4.3.9 7,563 8/10/2021
2.4.3.8 1,883 8/3/2021
2.4.3.7 2,664 7/8/2021
2.4.3.6 1,891 6/25/2021
2.4.3.5 2,451 5/18/2021
2.4.3.4 61,483 5/6/2021
2.4.3.3 1,835 4/17/2021
2.4.3.2 1,881 4/2/2021
2.4.3.1 1,652 4/1/2021
2.4.3 2,593 3/26/2021
2.4.2.10 1,760 3/26/2021
2.4.2.9 1,783 3/23/2021
2.4.2.8 1,730 3/19/2021
2.4.2.7 1,905 3/11/2021
2.4.2.6 1,739 3/10/2021
2.4.2.5 1,753 3/6/2021
2.4.2.4 1,925 2/26/2021
2.4.2.3 1,751 2/19/2021
2.4.2.1 1,846 1/26/2021
2.4.2 1,857 1/23/2021
2.4.1.5 1,950 1/12/2021
2.4.1.4 1,704 1/11/2021
2.4.1.3 1,868 12/25/2020
2.4.1.2 1,960 12/18/2020
2.4.1.1 7,099 12/11/2020
2.4.1 1,937 11/17/2020
2.4.0 1,980 11/11/2020
2.3.2.6 1,956 11/10/2020
2.3.2.5 1,841 11/10/2020
2.3.2.4 1,809 11/10/2020
2.3.2.3 1,711 11/10/2020
2.3.2.2 1,798 11/3/2020
2.3.2.1 1,753 11/3/2020
2.3.2 2,477 10/28/2020
2.3.1.10 2,025 9/28/2020
2.3.1.9 1,823 9/27/2020
2.3.1.8 1,741 9/22/2020
2.3.1.7 1,851 9/20/2020
2.3.1.6 1,764 9/17/2020
2.3.1.6-preview 1,150 9/17/2020
2.3.1.5 1,849 9/11/2020
2.3.1.4 1,897 9/3/2020
2.3.1.3 1,814 9/3/2020
2.3.1.1 2,047 8/21/2020
2.3.1 1,833 8/19/2020
2.3.0 1,825 8/18/2020
2.2.9.6 1,791 8/17/2020
2.2.9.5 1,899 8/11/2020
2.2.9.4 1,801 8/11/2020
2.2.9.3 1,867 8/6/2020
2.2.9.2 1,972 8/1/2020
2.2.9.1 1,976 7/14/2020
2.2.9 1,773 7/13/2020
2.2.8.9 2,279 5/2/2020
2.2.8.8 16,841 4/15/2020
2.2.8.7 1,803 4/15/2020
2.2.8.6 1,971 3/22/2020
2.2.8.5 1,762 3/20/2020
2.2.8.4 1,954 3/1/2020
2.2.8.3 1,929 2/29/2020
2.2.8.2 1,904 1/16/2020
2.2.8.1 1,862 1/13/2020
2.2.8 1,785 1/4/2020
2.2.7.6 1,836 12/20/2019
2.2.7.4 1,906 12/16/2019
2.2.7.3 2,081 10/30/2019
2.2.7.1 1,814 10/29/2019
2.2.7 1,852 10/20/2019
2.2.6.4 2,709 10/16/2019
2.2.6.3 2,846 8/2/2019
2.2.6.2 2,743 6/9/2019
2.2.6.1 2,722 4/27/2019
2.2.6 2,556 4/9/2019
2.2.5.1 2,798 3/28/2019
2.2.5 2,608 3/20/2019
2.2.4.6 2,762 2/10/2019
2.2.4.5 2,739 1/28/2019
2.2.4.4 2,665 1/27/2019
2.2.4.3 2,705 1/25/2019
2.2.4 2,759 1/19/2019
2.2.3.5 2,762 1/18/2019
2.2.3.4 2,703 1/6/2019
2.2.3.3 2,718 1/3/2019
2.2.3.1 2,764 1/3/2019
2.2.3 2,772 1/2/2019
2.2.2.2 2,870 1/2/2019
2.2.2.1 2,764 1/2/2019
2.2.2 2,694 12/31/2018
2.2.0 3,259 12/29/2018
2.1.6.1 2,731 12/25/2018
2.1.6 2,603 12/25/2018
2.1.5.2 2,636 12/24/2018
2.1.5.1 2,892 12/22/2018
2.1.5 2,848 12/21/2018
2.1.4.3 2,966 12/15/2018
2.1.4.2 2,637 12/15/2018
2.1.4.1 2,829 11/30/2018
2.1.4 2,667 11/27/2018
2.1.3.1 2,747 11/23/2018
2.1.3 2,625 11/20/2018
2.1.2.1 2,740 11/9/2018
2.1.2 2,748 11/9/2018
2.1.1.1 2,824 10/30/2018
2.1.1 3,181 9/22/2018
2.1.0 2,916 9/6/2018
2.0.1 2,982 7/26/2018
2.0.0 3,004 7/26/2018
1.9.11 2,998 7/10/2018
1.9.10 2,983 6/27/2018
1.9.9 3,010 6/6/2018
1.9.8 3,021 5/9/2018
1.9.7.4 3,233 4/21/2018
1.9.7.3 3,122 4/21/2018
1.9.7.2 3,236 4/21/2018
1.9.7.1 3,029 4/16/2018
1.9.7 2,926 4/16/2018
1.9.6 3,074 4/14/2018
1.9.5.4 2,983 4/2/2018
1.9.5.3 3,025 4/2/2018
1.9.5.2 3,030 4/1/2018
1.9.5.1 3,054 3/31/2018
1.9.5 3,176 3/25/2018
1.9.4.1 3,091 3/17/2018
1.9.4 2,995 3/17/2018
1.9.3.3 3,024 3/14/2018
1.9.3.2 3,047 3/13/2018
1.9.3.1 3,107 3/11/2018
1.9.3 3,165 3/11/2018
1.9.2 3,147 3/11/2018
1.9.1.4 3,079 3/9/2018
1.9.1.3 3,047 3/9/2018
1.9.1.2 3,170 3/8/2018
1.9.1.1 3,005 3/8/2018
1.9.1 2,733 3/8/2018
1.9.0 3,089 3/7/2018
1.8.9.1 2,287 3/3/2018
1.8.9 2,333 2/20/2018
1.8.8 2,384 2/3/2018
1.8.7 2,677 1/13/2018
1.8.6 2,413 1/10/2018
1.8.5 2,525 1/9/2018
1.8.4 2,455 1/9/2018
1.8.3 2,256 1/8/2018
1.8.2 2,448 1/5/2018
1.8.1 2,540 1/5/2018
1.8.0 2,370 12/22/2017
1.7.9 2,538 12/8/2017
1.7.7 2,224 11/18/2017
1.0.0 2,231 8/23/2017

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