XFEExtension.NetCore.XFEConsole 1.0.3

dotnet add package XFEExtension.NetCore.XFEConsole --version 1.0.3                
NuGet\Install-Package XFEExtension.NetCore.XFEConsole -Version 1.0.3                
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="XFEExtension.NetCore.XFEConsole" Version="1.0.3" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add XFEExtension.NetCore.XFEConsole --version 1.0.3                
#r "nuget: XFEExtension.NetCore.XFEConsole, 1.0.3"                
#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.
// Install XFEExtension.NetCore.XFEConsole as a Cake Addin
#addin nuget:?package=XFEExtension.NetCore.XFEConsole&version=1.0.3

// Install XFEExtension.NetCore.XFEConsole as a Cake Tool
#tool nuget:?package=XFEExtension.NetCore.XFEConsole&version=1.0.3                

XFEExtension.NetCore.XFEConsole

简述

XFEExtension.NetCore.XFEConsole是一个可以运行用户进行远程输出的调试辅助工具,需要配合XFE工具箱来使用,当然也可以根据本DLL内的架构搭建一个调试工具

使用方法

await XFEConsole.UseXFEConsole(3280);   // 使用XFE控制台并连接端口为3280的控制台调试终端
                                        // await任务返回一个bool值,该值指示是否与调试终端连接成功

XFEConsole.ShowInDebug = true;          // 是否在本地调试的Debug中展示,默认为 true
XFEConsole.UseConsoleColor = true;      // 使用控制台颜色,默认为 true
XFEConsole.ShowInLocalConsole = false;  // 是否在本地控制台中显示,默认为 false
XFEConsole.AutoAnalyzeObject = true;    // 是否自动解析对象,而非直接输出对象的.ToString()方法,默认为 true

配合XUnit测试框架

class Program
{
    [UseXFEConsole]
    [SMTest]
    static void TestMethod()
    {
        Console.WriteLine("使用XUnit框架输出");
    }
}
Product Compatible and additional computed target framework versions.
.NET 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.3 119 8/18/2024
1.0.2 113 8/14/2024
1.0.1 107 8/12/2024
1.0.0 93 8/7/2024

新增UseXFEConsole特性,用于添加至XUnit单元测试