Xmtool 2.0.15

There is a newer version of this package available.
See the version list below for details.
dotnet add package Xmtool --version 2.0.15                
NuGet\Install-Package Xmtool -Version 2.0.15                
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.15" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Xmtool --version 2.0.15                
#r "nuget: Xmtool, 2.0.15"                
#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.15

// Install Xmtool as a Cake Tool
#tool nuget:?package=Xmtool&version=2.0.15                

<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.15
.NET CLI
dotnet add package Xmtool --version 2.0.15
PackageReference
<PackageReference Include="Xmtool" Version="2.0.15" />
Paket CLI
paket add Xmtool --version 2.0.15

🛠️使用说明

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 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.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Xmtool:

Package Downloads
Derd

Derd是一款使用简单、功能强大的对象关系映射(O/RM)组件

Wukong

基于.Net实现的轻量级IoC容器工具类库

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.0.0 264 5/11/2024
2.3.0 170 8/18/2024
2.2.1 288 2/28/2024
2.2.0 191 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 543 8/12/2023
2.0.11 150 8/8/2023
2.0.6 240 6/27/2023
2.0.5 394 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 393 8/4/2022