Xmtool 3.0.0
dotnet add package Xmtool --version 3.0.0
NuGet\Install-Package Xmtool -Version 3.0.0
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="Xmtool" Version="3.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Xmtool --version 3.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Xmtool, 3.0.0"
#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 Xmtool as a Cake Addin #addin nuget:?package=Xmtool&version=3.0.0 // Install Xmtool as a Cake Tool #tool nuget:?package=Xmtool&version=3.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
<div align="center"> <article style="display: flex; flex-direction: column; align-items: center; justify-content: center;"> <p align="center"><img width="256" src="http://res.dayuan.tech/images/xmtool.png" /></p> <p> 一个简单易用的.Net工具类库(持续集成中...) </p> </article> </div>
🔰 简介
Xmtool是一个基于.Net的常用功能集成工具类库,目的是做成一个像Java语言中的Hutool类似的工具库,将和具体业务逻辑无关的常用功能进行抽象和封装,集成到一个类库中,方便使用维护,提升开发效率。
🚀 版本
.NetCore3.1:3.0.0之前的版本全部基于.netcore3.1开发。 <br> .Net8.0:从3.0.0开始之后的版本,全部基于.net8开发。
📦安装
Package Manager
Install-Package Xmtool -Version 3.0.0
.NET CLI
dotnet add package Xmtool --version 3.0.0
PackageReference
<PackageReference Include="Xmtool" Version="3.0.0" />
Paket CLI
paket add Xmtool --version 3.0.0
🛠️使用说明
Xmtool为了方便调用,将所有功能统一封装集成到静态类Xmtool中,在调用相应方法时,全部以Xmtool为入口,根据方法所属功能分类逐级调用即可;同时在一定程度上支持了链式调用,大大提升了使用便利性,也使代码看起来更加优雅。
例:生成一个4位的数字短信验证码。
public string GetSmsCode()
{
string code = Xmtool.Random().RandomCaptcha(4, true);
return code;
}
例:判断字符串是否有效手机号码
public bool IsMobile(string str)
{
return Xmtool.Regex().IsMobile(str);
}
📝文档
🎈 协议
Xmtool 使用 MIT 协议
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Aliyun.OSS.SDK.NetCore (>= 2.13.0)
- HtmlSanitizer (>= 8.0.865)
- Qiniu (>= 8.5.0)
- SkiaSharp (>= 2.88.8)
- SkiaSharp.NativeAssets.Linux (>= 2.88.8)
- Tencent.QCloud.Cos.Sdk (>= 5.4.36)
Version | Downloads | Last updated |
---|---|---|
3.0.0 | 265 | 5/11/2024 |
2.3.0 | 170 | 8/18/2024 |
2.2.1 | 288 | 2/28/2024 |
2.2.0 | 193 | 2/13/2024 |
2.1.2 | 196 | 1/16/2024 |
2.1.1 | 251 | 12/22/2023 |
2.1.0 | 167 | 12/21/2023 |
2.0.15 | 544 | 8/12/2023 |
2.0.11 | 150 | 8/8/2023 |
2.0.6 | 240 | 6/27/2023 |
2.0.5 | 395 | 11/14/2022 |
2.0.3 | 3,288 | 9/7/2022 |
2.0.2 | 804 | 8/30/2022 |
2.0.1 | 383 | 8/22/2022 |
2.0.0 | 395 | 8/4/2022 |