Mar.Console
0.9.0
.NET 6.0
This package targets .NET 6.0. The package is compatible with this framework or higher.
.NET Framework 4.6.2
This package targets .NET Framework 4.6.2. The package is compatible with this framework or higher.
dotnet add package Mar.Console --version 0.9.0
NuGet\Install-Package Mar.Console -Version 0.9.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="Mar.Console" Version="0.9.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Mar.Console" Version="0.9.0" />
<PackageReference Include="Mar.Console" />
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 Mar.Console --version 0.9.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Mar.Console, 0.9.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.
#:package Mar.Console@0.9.0
#: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=Mar.Console&version=0.9.0
#tool nuget:?package=Mar.Console&version=0.9.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Mar.Console
ExceptionUtil
Get text message from exception.
SystemUtil
Print System info.
EmailUtil
Send mail directly with smtp.
ConsoleUtil
Print console message in different color.
How to use
You can use this tool like "".PrintGreen();
$"任务执行结果:{result}".PrintGreen();
Demo

JsonUtil
Convert object to json string.
How to use
Load
Load mail list from json file.
private void Prepare()
{
var model = JsonUtil.Load<Mail>(JSON_FILE);
}
private const string JSON_FILE = "mails.json";
Save
You can just call like JsonUtil.Save<MyModel>(file, model); or JsonUtil.Save(file, json);
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. 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 is compatible. 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 was computed. 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 Framework | net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 is compatible. net48 was computed. net481 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.6.2
- Newtonsoft.Json (>= 13.0.3)
- Serilog (>= 4.3.0)
- System.Management (>= 9.0.8)
-
.NETFramework 4.7.2
- Newtonsoft.Json (>= 13.0.3)
- Serilog (>= 4.3.0)
- System.Management (>= 9.0.8)
-
.NETFramework 4.8.1
- Newtonsoft.Json (>= 13.0.3)
- Serilog (>= 4.3.0)
- System.Management (>= 9.0.8)
-
net6.0
- Newtonsoft.Json (>= 13.0.3)
- Serilog (>= 4.3.0)
- System.Management (>= 9.0.8)
-
net7.0
- Newtonsoft.Json (>= 13.0.3)
- Serilog (>= 4.3.0)
- System.Management (>= 9.0.8)
-
net8.0
- Newtonsoft.Json (>= 13.0.3)
- Serilog (>= 4.3.0)
- System.Management (>= 9.0.8)
-
net9.0
- Newtonsoft.Json (>= 13.0.3)
- Serilog (>= 4.3.0)
- System.Management (>= 9.0.8)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Mar.Console:
| Package | Downloads |
|---|---|
|
Mar.Controls
Some useful control for WPF. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.9.0 | 243 | 8/29/2025 |
| 0.8.1 | 179 | 11/25/2024 |
| 0.8.0 | 193 | 10/14/2024 |
| 0.8.0-pre4 | 122 | 10/12/2024 |
| 0.8.0-pre3 | 130 | 10/10/2024 |
| 0.8.0-pre2 | 139 | 10/10/2024 |
| 0.8.0-pre1 | 122 | 10/10/2024 |
| 0.7.0 | 196 | 9/6/2024 |
| 0.6.8 | 196 | 6/18/2024 |
| 0.6.7 | 223 | 4/11/2024 |
| 0.6.6 | 228 | 4/5/2024 |
| 0.6.5 | 230 | 3/25/2024 |
| 0.6.4 | 205 | 3/25/2024 |
| 0.6.3 | 299 | 12/18/2023 |
| 0.6.2 | 206 | 12/18/2023 |
| 0.6.1 | 211 | 11/21/2023 |
| 0.6.0 | 201 | 10/30/2023 |
| 0.5.1 | 187 | 10/30/2023 |
| 0.5.1-pre2 | 168 | 10/30/2023 |
| 0.5.1-pre1 | 147 | 10/30/2023 |
| 0.5.0 | 160 | 10/29/2023 |
| 0.4.0 | 244 | 7/31/2023 |
| 0.3.0 | 251 | 6/15/2023 |
| 0.2.1 | 437 | 11/8/2022 |
| 0.2.0 | 496 | 3/24/2022 |
| 0.1.0 | 471 | 3/24/2022 |
1.优化邮件发送和控制台输出
2.增加异常处理和平台兼容性