Xmtool 2.0.2
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Xmtool --version 2.0.2
NuGet\Install-Package Xmtool -Version 2.0.2
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="2.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Xmtool --version 2.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Xmtool, 2.0.2"
#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=2.0.2 // Install Xmtool as a Cake Tool #tool nuget:?package=Xmtool&version=2.0.2
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> 一个简单易用的.NetCore工具类库(持续集成中...) </p> </article> </div>
🔰 简介
Xmtool是一个基于.NetCore的常用功能集成工具类库,目的是做成一个像Java语言中的Hutool类似的工具库,将和具体业务逻辑无关的常用功能进行抽象和封装,集成到一个类库中,方便使用维护,提升开发效率。
📦安装
Package Manager
Install-Package Xmtool -Version 2.0.2
.NET CLI
dotnet add package Xmtool --version 2.0.2
PackageReference
<PackageReference Include="Xmtool" Version="2.0.2" />
Paket CLI
paket add Xmtool --version 2.0.2
🛠️使用说明
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 | 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 | netcoreapp3.1 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETCoreApp 3.1
- HtmlSanitizer (>= 7.1.488)
- SixLabors.ImageSharp (>= 2.1.3)
- SixLabors.ImageSharp.Drawing (>= 1.0.0-beta14)
- System.Drawing.Common (>= 6.0.0)
Version | Downloads | Last updated |
---|---|---|
3.0.0 | 266 | 5/11/2024 |
2.3.0 | 171 | 8/18/2024 |
2.2.1 | 289 | 2/28/2024 |
2.2.0 | 194 | 2/13/2024 |
2.1.2 | 197 | 1/16/2024 |
2.1.1 | 252 | 12/22/2023 |
2.1.0 | 168 | 12/21/2023 |
2.0.15 | 546 | 8/12/2023 |
2.0.11 | 151 | 8/8/2023 |
2.0.6 | 241 | 6/27/2023 |
2.0.5 | 396 | 11/14/2022 |
2.0.3 | 3,289 | 9/7/2022 |
2.0.2 | 805 | 8/30/2022 |
2.0.1 | 384 | 8/22/2022 |
2.0.0 | 396 | 8/4/2022 |