Skip to content
ConsoleControl is a C# class library that lets you embed a console in a WinForms or WPF application.
Branch: master
Clone or download
Latest commit 10ac2d7 May 6, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs build: create NuGet specs, build with appveyor (#33) Nov 28, 2018
source build: improve nuget build process Apr 4, 2019
.gitignore fix: fix the WPF sample Nov 27, 2018
LICENSE.md Create LICENSE.md Mar 22, 2015
README.md Merge branch 'master' into guardrails/initial May 6, 2019
appveyor.yml build: nuget spec (#37) Apr 4, 2019

README.md

ConsoleControl

Build status GuardRails badge

ConsoleControl is a C# class library that lets you embed a console in a WinForms or WPF application. This console can be used for input and output for a process. It's great for making tools and utilities.

ConsoleControl Screenshot

Installing

Installing couldn't be easier, just use NuGet. You can search for 'ConsoleControl' or install directly.

For WinForms:

PM> Install-Package ConsoleControl

For WPF:

PM> Install-Package ConsoleControl.WPF

Using ConsoleControl

Once you've installed the package, the ConsoleControl will be available in the toolbox. Add a ConsoleControl to your WPF or WinForms project and call StartProcess to start a new process. The process will run and all output will be directed to the ConsoleControl. You can also optionally enable input from the control.

Developer Guide

To build, open the main ./source/ConsoleControl.sln solution to build and run any of the code or samples.

You can also use the following scripts to run the processes:

Script Notes
build.ps1 Build the solution from the command line.

You can learn how the ConsoleControl was created by reading the article Embedding a Console in a C# Application article on the CodeProject.

Creating a Release

To create a release:

  1. Update the version number in SharedAssemblyInfo.cs
  2. Create a new version tag, then push git push --follow-tags

AppVeyor will build and publish a new NuGet package and as long as a new semver tag is pushed.

You can’t perform that action at this time.