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.
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
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.
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.
To create a release:
SharedAssemblyInfo.cs
git push --follow-tags
AppVeyor will build and publish a new NuGet package and as long as a new semver tag is pushed.