https://github.com/dwmkerr/consolecontrol
ConsoleControl is a C# class library that lets you embed a console in a WinForms or WPF application.
https://github.com/dwmkerr/consolecontrol
Last synced: 2 days ago
JSON representation
ConsoleControl is a C# class library that lets you embed a console in a WinForms or WPF application.
- Host: GitHub
- URL: https://github.com/dwmkerr/consolecontrol
- Owner: dwmkerr
- License: mit
- Created: 2013-08-26T08:01:27.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2023-05-29T23:51:54.000Z (almost 2 years ago)
- Last Synced: 2024-10-30T01:38:19.248Z (6 months ago)
- Language: C#
- Size: 766 KB
- Stars: 732
- Watchers: 40
- Forks: 171
- Open Issues: 36
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
- awesome-wpf - ConsoleControl - (FREE, OPEN SOURCE) ConsoleControl is a C# class library that lets you embed a console in a WinForms or WPF application. (UI Controls / Individual Controls)
README
# ConsoleControl
[](https://ci.appveyor.com/project/dwmkerr/consolecontrol) [](https://dashboard.guardrails.io/gh/dwmkerr/16697)
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](#installing)
* [Using ConsoleControl](#using-consolecontrol)
* [Developer Guide](#developer-guide)
* [Creating a Release](#creating-a-release)## 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](http://www.codeproject.com/Articles/335909/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`](./source/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.