Woof.TestTerminal 6.2.0

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

// Install Woof.TestTerminal as a Cake Tool
#tool nuget:?package=Woof.TestTerminal&version=6.2.0                

Woof.TestTerminal

A part of the Woof Tookit by CodeDog.

Distributed under MIT License. (c)2022 by CodeDog, All rights reserved.


About

Displays a Windows Terminal window with optional split panels. It chagnes the current directory to the current configuration output directory. It sets the window title and prompt. To force administrator access, add the app.manifest file to the terminal project.

The package is made to save you opening the terminal window yourself, then changing the directory to the project's output. And you don't see this annoying too long path to your project output directory with no room to enter commands.

Important option is to test more than one project in one window using WT's split panel feature.

This is a life saver when testing client-server scenarios, when you have both in one solution.

Usage

Start a new empty Windows application. It's important to change Console Application to Windows Application. You don't need a console to use Windows Terminal.

Download Woof.TestTerminal NuGet package.

Make Program.cs file like this:

using System;
using Woof.TestTerminal;

new Terminal {
    IsMaximized = true,
    Projects = new() {
        ["Tab Title"] = "ProjectName",
    }
}.Start(asAdministrator: false, "dir");

Project is a dictionary whose keys are user defined names and the values are project names. Start method will start the Windows Terminal.

First parameter tells it to run the terminal as administrator. The second parapeter contains additional commands to be run for each configured project on terminal start.

If multiple projects added, they will be displayed side by side.

The terminal uses cmd, not PowerShell to make it simpler. Changing the prompt for PowerShell is kind of "rocket-science" complex. Also, if running or configuring your app requires PowerShell it's probably done wrong and its command line interface is too complex.


Disclaimer

Woof Toolkit is a work in progress in constant development, however it's carefully maintained with production code quality.

PLEASE report all issues on GitHub!

Describe how to reproduce an issue. Also feel free to suggest new features or improvements.

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 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. 
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
7.0.0 210 8/6/2023
6.2.0 459 2/20/2022
6.0.0 329 11/10/2021

Woof Toolkit 6.2 first release.