Materal.Abstractions 1.3.5

This package has a SemVer 2.0.0 package version: 1.3.5+main.75c40e8.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Materal.Abstractions --version 1.3.5
                    
NuGet\Install-Package Materal.Abstractions -Version 1.3.5
                    
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="Materal.Abstractions" Version="1.3.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Materal.Abstractions" Version="1.3.5" />
                    
Directory.Packages.props
<PackageReference Include="Materal.Abstractions" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Materal.Abstractions --version 1.3.5
                    
#r "nuget: Materal.Abstractions, 1.3.5"
                    
#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.
#:package Materal.Abstractions@1.3.5
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Materal.Abstractions&version=1.3.5
                    
Install as a Cake Addin
#tool nuget:?package=Materal.Abstractions&version=1.3.5
                    
Install as a Cake Tool

Materal.Abstractions

Materal 基础抽象包,为 .NET 应用程序提供通用的抽象基类和扩展方法。

功能特性

  • 异常处理增强:提供强大的异常处理扩展方法,支持格式化异常信息、递归处理内部异常、自定义消息格式等功能
  • 基础异常类MateralException 作为所有自定义异常的基类
  • 日期时间枚举:提供常用的日期时间单位枚举
  • 多框架支持:支持 .NET Standard 2.0/2.1 以及 .NET 8.0/9.0/10.0

快速开始

安装

<PackageReference Include="Materal.Abstractions" Version="[VERSION]" />

或者使用 .NET CLI:

dotnet add package Materal.Abstractions

基本使用

using Materal.Abstractions;

// 使用异常处理扩展
try
{
    throw new MateralException("测试异常");
}
catch (Exception ex)
{
    Console.WriteLine(ex.GetErrorMessage());
}

// 使用日期时间枚举
DateTimeUnitEnum unit = DateTimeUnitEnum.DayUnit;

文档

有关更详细的文档和使用示例,请查看我们的 Wiki

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 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.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.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 is compatible. 
.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 (6)

Showing the top 5 NuGet packages that depend on Materal.Abstractions:

Package Downloads
Materal.Utils

Materal工具包

Materal.Extensions

Materal基础类扩展包

MateralReleaseCenter.EnvironmentServer.ConfigClient

Package Description

Materal.MergeBlock.RemoteConfig

Materal MergeBlock远程配置模块

Materal.MergeBlock.COA

Materal MergeBlock证书授权模块

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.4.4 298 3/23/2026
1.4.3 347 3/2/2026
1.4.2 140 2/25/2026
1.4.1 254 2/1/2026
1.3.5 171 1/8/2026
1.3.3 234 11/18/2025
1.3.1 92 9/11/2025
1.3.0 152 7/24/2025
1.2.30 73 7/24/2025
1.2.29 96 7/22/2025
1.2.28 92 7/11/2025
1.1.23 1,540 5/17/2023