Materal.Abstractions
1.3.5
.NET 8.0
This package targets .NET 8.0. The package is compatible with this framework or higher.
.NET Standard 2.0
This package targets .NET Standard 2.0. The package is compatible with this framework or higher.
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.
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" />
<PackageReference Include="Materal.Abstractions" />
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
#tool nuget:?package=Materal.Abstractions&version=1.3.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 | 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 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.
-
.NETStandard 2.0
- IndexRange (>= 1.1.0)
- Microsoft.Extensions.Configuration (>= 10.0.0)
- Microsoft.Extensions.DependencyInjection (>= 10.0.0)
- Portable.System.DateTimeOnly (>= 9.0.1)
-
.NETStandard 2.1
- Microsoft.Extensions.Configuration (>= 10.0.0)
- Microsoft.Extensions.DependencyInjection (>= 10.0.0)
- Portable.System.DateTimeOnly (>= 9.0.1)
-
net10.0
- Microsoft.Extensions.Configuration (>= 10.0.0)
- Microsoft.Extensions.DependencyInjection (>= 10.0.0)
-
net8.0
- Microsoft.Extensions.Configuration (>= 10.0.0)
- Microsoft.Extensions.DependencyInjection (>= 10.0.0)
-
net9.0
- Microsoft.Extensions.Configuration (>= 10.0.0)
- Microsoft.Extensions.DependencyInjection (>= 10.0.0)
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.