Skip to content

ConsoleControl is a C# class library that lets you embed a console in a WinForms or WPF application.

License

Notifications You must be signed in to change notification settings

dwmkerr/consolecontrol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

ConsoleControl is a C# class library that lets you embed a console in a WinForms or WPF application.

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published