|
|
6 months ago | |
|---|---|---|
| .. | ||
| App | 6 months ago | |
| Configuration | 6 months ago | |
| Drawing | 6 months ago | |
| Drivers | 6 months ago | |
| FileServices | 6 months ago | |
| Input | 6 months ago | |
| Resources | 6 months ago | |
| Text | 6 months ago | |
| ViewBase | 6 months ago | |
| Views | 6 months ago | |
| Directory.Build.props | 1 year ago | |
| GlobalSuppressions.cs | 6 months ago | |
| ModuleInitializers.cs | 6 months ago | |
| README.md | 6 months ago | |
| Terminal.Gui.csproj | 6 months ago | |
| Terminal.Gui.csproj.DotSettings | 1 year ago | |
| Terminal.Gui.sln | 6 months ago | |
All files required to build the Terminal.Gui library (and NuGet package).
\ - The root folder contains the source code for the library.
Terminal.Gui.sln - The Visual Studio solutionApplication\ - The core Application logic, including Application.cs, which is is a static class that provides the base 'application engine', RunState, and MainLoop.ConsoleDrivers\
IConsoleDriver.cs - Definition for the Console Driver API.IConsoleDriver-based drivers: .NET: NetDriver, Unix & Mac: UnixDriver, and Windows: WindowsDriver.Configuration\ - Classes related the ConfigurationManager.
Clipboard\ - Classes related to clipboard access.
Input\ - Classes relating to keyboard and mouse input.
Events.cs - Defines keyboard and mouse-related structs & classes.Text\ - Classes related to text processing
Drawing\ - Classes related to drawing
View\ - The View class heirarchy, not including any sub-classes
View.cs - The base class for non-modal visual elements such as controls.Layout\
PosDim.cs - Implements Computed Layout system. These classes have deep dependencies on View.Views\ - Sub-classes of View
Toplevel - Derived from View, the base class for modal visual elements such as top-level windows and dialogs. Supports the concept of MenuBar and StatusBar.Window - Derived from TopLevel; implements Toplevel views with a visible frame and Title.Dialog -FileServcies/ - File services classes.
Version info for Terminal.Gui is managed by gitversion.
Install gitversion:
dotnet tool install --global GitVersion.Tool
dotnet-gitversion
The project version (the nuget package and in Terminal.Gui.dll) is determined from the latest git tag.
The format of version numbers is vmajor.minor.patch.build.height and follows the Semantic Versioning rules.
To define a new version (e.g. with a higher major, minor, patch, or build value) tag a commit using git tag:
git tag v1.3.4-beta.5 -a -m "Release v1.3.4 Beta 5"
dotnet-gitversion /updateprojectfiles
dotnet build -c Release
DO NOT COMMIT AFTER USING /updateprojectfiles!
Doing so will update the .csproj files in your branch with version info, which we do not want.
First, use the Semantic Versioning rules.to determine the new verison number.
Given a version number MAJOR.MINOR.PATCH, increment the:
Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format.
To release a new version (e.g. with a higher major, minor, or patch value) tag a commit using git tag and then push that tag directly to the main branch on github.com/gui-cs/Terminal.Gui (upstream).
The tag must be of the form v<major>.<minor>.<patch>, e.g. v2.3.4.
patch can indicate pre-release or not (e.g. pre, beta, rc, etc...).
develop branch is ready for releasedevelop branchdevelop branch is up-to-date with upstream/developdevelop branchThe PR title should be of the form "Release v2.3.4"
git checkout develop
git pull upstream develop
git checkout -b v2_3_4
git add .
git commit -m "Release v2.3.4"
git push
Go to the link printed by git push and fill out the Pull Request.
develop from upstreamgit checkout develop
git pull upstream develop
develop into maingit checkout main
git pull upstream main
git merge develop
Fix any merge errors.
maingit tag v2.3.4 -a -m "Release v2.3.4"
main on upstreamgit push --atomic upstream main v2.3.4
See https://stackoverflow.com/a/3745250/297526
https://github.com/gui-cs/Terminal.Gui/actions
https://www.nuget.org/packages/Terminal.Gui
Generate release notes with the list of PRs since the last release.
develop branch with the new versiongit checkout develop
git pull upstream develop
git merge main
git push upstream develop
https://www.nuget.org/packages/Terminal.Gui
When a new version tag is defined and merged into main, a Nuget package will be generated by a Github Action.
If the version is pre-release (includes a hyphen, e.g. 1.3.4-beta.5) the Nuget package will be tagged as pre-release.
Miguel & Tig can hide defunct/old Nuget packages.
See CONTRIBUTING.md.