CommonTool.Console 1.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package CommonTool.Console --version 1.0.1                
NuGet\Install-Package CommonTool.Console -Version 1.0.1                
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="CommonTool.Console" Version="1.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CommonTool.Console --version 1.0.1                
#r "nuget: CommonTool.Console, 1.0.1"                
#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 CommonTool.Console as a Cake Addin
#addin nuget:?package=CommonTool.Console&version=1.0.1

// Install CommonTool.Console as a Cake Tool
#tool nuget:?package=CommonTool.Console&version=1.0.1                

CommonTool

Einbindung des Packages in die Projekt-Datei (*.csproj)

<Project Sdk="Microsoft.NET.Sdk">
  ...

  <ItemGroup>
    <PackageReference Include="CommonTool.Console" Version="1.0.1" />
  </ItemGroup>

</Project>

Erstellen der Anwendungsklasse (zum Beispiel: SampleApp)

namespace SampleCommonTool.ConApp
{
    using CommonTool;
    public partial class SampleApp : ConsoleApplication
    {
        #region override methods
        /// <summary>
        /// Creates an array of menu items for the application menu.
        /// </summary>
        /// <returns>An array of MenuItem objects representing the menu items.</returns>
        protected override MenuItem[] CreateMenuItems()
        {
            var mnuIdx = 0;
            var menuItems = new List<MenuItem>
            {
                CreateMenuSeparator(),
                new()
                {
                    Key = $"{++mnuIdx}",
                    Text = ToLabelText("Force", "Change force flag"),
                    Action = (self) => ChangeForce(),
                },
                // . . .
                CreateMenuSeparator(),
            };

            return [.. menuItems.Union(CreateExitMenuItems())];
        }
        #endregion override methods
    }
}

Starten der Anwendung

namespace SampleCommonTool.ConApp
{
    /// <summary>
    /// Represents the entry point of the application.
    /// </summary>
    public partial class Program
    {
        public static void Main(string[] args)
        {
            SampleApp app = new();

            app.Run(args);
        }
    }
}

Hinweis

Eine detaillierte Beschreibung über die Verwendung des Packages finden Sie unter dem Link:

https://github.com/leoggehrer/CommonTool/tree/main

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.
  • net8.0

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on CommonTool.Console:

Package Downloads
PlantUML.LiveGeneration

This console application monitors the source code changes of C# files and generates PantUML Activity, PlantUML Sequence and PlantUML Class diagrams after each change to the source data.

PlantUML.Console

This console application provides functionality for creating activity, class, and sequence diagrams from C# source code.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.6 120 7/6/2024
1.0.5 108 7/4/2024
1.0.4 111 6/29/2024
1.0.3 106 6/22/2024
1.0.2 154 6/3/2024
1.0.1 116 5/31/2024