Wheel.Base 2.0.0-beta3

This is a prerelease version of Wheel.Base.
The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package Wheel.Base --version 2.0.0-beta3
NuGet\Install-Package Wheel.Base -Version 2.0.0-beta3
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="Wheel.Base" Version="2.0.0-beta3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Wheel.Base --version 2.0.0-beta3
#r "nuget: Wheel.Base, 2.0.0-beta3"
#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 Wheel.Base as a Cake Addin
#addin nuget:?package=Wheel.Base&version=2.0.0-beta3&prerelease

// Install Wheel.Base as a Cake Tool
#tool nuget:?package=Wheel.Base&version=2.0.0-beta3&prerelease

Usage example

class Program
{
    static int Main(string[] args)
        => WheelAppBuilder.CreateDefault<Program>().Run(args);

    public static void Define(ICommandBuilder root)
    {
        root.DefaultCommand<HelloCommand>("hello");
        // ... add other definitions here ...
    }
}

class HelloCommand
{
    public static void Define(ICommandBuilder cmd)
    {
        cmd.Description = "A polite command";
        var nameArg = cmd.Argument("[name]", "Your name");

        cmd.Action = () => SayHello(nameArg.Value ?? "world");
    }

    private static void SayHello(string name)
    {
        Console.WriteLine("Hello, {0}.", name);
    }
}

This program can be launched with various arguments, for instance:

  • -h for help on the program (including a list of defined commands)
  • hello -h for help on command "hello"
  • ? for interfactive mode
  • hello -f monde to call the command "hello" with option "-f" and argument "monde"
  • no argument to call the default command (which is also the "hello" command)

Define methods (in classes Program and HelloCommand) may also have parameters of types IServiceCollection (to register services for dependency injection) and/or IEnv (to get information about the current environment).

For commands returing values, assign cmd.Func instead of cmd.Action.

Property cmd.Services can be used to access the dependency injection container from the assigned action of function.

Files nlog.config and appsettings.ini can be created in any parent directory to configure logging and application settings.

See more at the project home.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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 was computed.  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 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net20 is compatible.  net35 was computed.  net40 was computed.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 is compatible.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Additional computed target framework(s)
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