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 279 8/29/2025
0.8.1 209 11/25/2024
0.8.0 221 10/14/2024
0.8.0-pre4 138 10/12/2024
0.8.0-pre3 147 10/10/2024
0.8.0-pre2 154 10/10/2024
0.8.0-pre1 140 10/10/2024
0.7.0 227 9/6/2024
0.6.8 226 6/18/2024
0.6.7 258 4/11/2024
0.6.6 261 4/5/2024
0.6.5 261 3/25/2024
0.6.4 235 3/25/2024
0.6.3 329 12/18/2023
0.6.2 238 12/18/2023
0.6.1 230 11/21/2023
0.6.0 216 10/30/2023
0.5.1 207 10/30/2023
0.5.1-pre2 184 10/30/2023
0.5.1-pre1 164 10/30/2023
Loading failed

1.优化邮件发送和控制台输出
2.增加异常处理和平台兼容性