CommonTool.Console
1.0.4
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package CommonTool.Console --version 1.0.4
NuGet\Install-Package CommonTool.Console -Version 1.0.4
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.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CommonTool.Console --version 1.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CommonTool.Console, 1.0.4"
#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.4 // Install CommonTool.Console as a Cake Tool #tool nuget:?package=CommonTool.Console&version=1.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
CommonTool
Einbindung des Packages in die Projekt-Datei (*.csproj)
<Project Sdk="Microsoft.NET.Sdk">
...
<ItemGroup>
<PackageReference Include="CommonTool.Console" Version="1.0.4" />
</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:
Product | Versions 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.