Mar.Console 0.9.0

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" />
                    
Directory.Packages.props
<PackageReference Include="Mar.Console" />
                    
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 Mar.Console --version 0.9.0
                    
#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
                    
Install as a Cake Addin
#tool nuget:?package=Mar.Console&version=0.9.0
                    
Install as a Cake Tool

Mar.Console

latest version downloads

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

How to use ConsoleUtil

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

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.增加异常处理和平台兼容性