Xmtool 2.3.0

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

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

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

🛠️使用说明

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 270 5/11/2024
2.3.0 175 8/18/2024
2.2.1 293 2/28/2024
2.2.0 198 2/13/2024
2.1.2 201 1/16/2024
2.1.1 256 12/22/2023
2.1.0 172 12/21/2023
2.0.15 554 8/12/2023
2.0.11 155 8/8/2023
2.0.6 245 6/27/2023
2.0.5 400 11/14/2022
2.0.3 3,294 9/7/2022
2.0.2 809 8/30/2022
2.0.1 389 8/22/2022
2.0.0 400 8/4/2022