Terminal.Gui.csproj 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. <Project Sdk="Microsoft.NET.Sdk">
  2. <PropertyGroup>
  3. <TargetFrameworks>net472;netstandard2.0;net5.0</TargetFrameworks>
  4. <RootNamespace>Terminal.Gui</RootNamespace>
  5. <AssemblyName>Terminal.Gui</AssemblyName>
  6. <DocumentationFile>bin\Release\Terminal.Gui.xml</DocumentationFile>
  7. <GenerateDocumentationFile Condition=" '$(Configuration)' == 'Release' ">true</GenerateDocumentationFile>
  8. <!-- moved to ../Directory.Build.props -->
  9. <!-- <AssemblyVersion>0.89.0.0</AssemblyVersion> -->
  10. </PropertyGroup>
  11. <PropertyGroup>
  12. <GeneratePackageOnBuild Condition=" '$(Configuration)' == 'Release' ">true</GeneratePackageOnBuild>
  13. <PackageId>Terminal.Gui</PackageId>
  14. <!-- moved to ../Directory.Build.props -->
  15. <!-- <PackageVersion>0.89</PackageVersion> -->
  16. <!-- <Authors>Miguel de Icaza, Charlie Kindel (@tig), @BDisp</Authors> -->
  17. <PackageLicenseExpression>MIT</PackageLicenseExpression>
  18. <PackageProjectUrl>https://github.com/migueldeicaza/gui.cs/</PackageProjectUrl>
  19. <PackageTags>csharp, terminal, c#, f#, gui, toolkit, console</PackageTags>
  20. <Description>Console-based user interface toolkit for .NET applications.</Description>
  21. <Owners>Miguel de Icaza</Owners>
  22. <Summary>Application framework for creating modern console applications using .NET</Summary>
  23. <Title>Terminal.Gui is a framework for creating console user interfaces</Title>
  24. <PackageReleaseNotes>
  25. 0.90: Feature Complete pre-release of 1.00
  26. * API documentation completely revamped and updated. Readme upated. Contributors guide added (Thanks @tig!)
  27. * New sample/demo app - UI Catalog - Replaces demo.cs with an easy to use and extend set of demo scenarios. (Thanks @tig!)
  28. * MenuBar can now have MenuItems directly (enables top-level menu items with no submenu). (Thanks @tig!)
  29. * Apps can now get KeyUp/KeyDown events. (Thanks @tig!)
  30. * Fixes #396 - Text alignnment issues. (Thanks @tig!)
  31. * Fixes #423 - Fix putting results of ocgv on command line erases cursor. (Thanks @tig!)
  32. * Example/Designer csproj files updated to latest Visual Studio model. (Thanks @tig!)
  33. * Adjusted the default colors for Windows to make more readable. (Thanks @tig!)
  34. * Toplevel.Ready event - Fired once the Toplevel's MainLoop has started (#445). (Thanks @tig!)
  35. * Refactored several events to use event vs. Action. (BREAKING CHANGE) (Thanks @tig!)
  36. * All compile warnings fixed. (Thanks @tig!)
  37. * Fixed a crash in EnsureVisibleBounds. (Thanks @tig!)
  38. * Application.Init/Shutdown are more robust. (Thanks @tig!)
  39. * New "Draw Window Frame" code; consistent across Window, FrameView, and Menu. Fixes many drawing bugs. (Thanks @tig!)
  40. * The project has been refactored an reorganized to reduce risk of bugs and make it easier to contribute #541. (Thanks @tig!)
  41. * Fixes #522 - Last view of Frameview not drawn. (Thanks @tig!)
  42. * Clipping has been fixed/restored - it now works properly. (#586) (Thanks @tig!)
  43. * Added a View.LayoutComplete event (#569). (Thanks @tig!)
  44. * Fixes #299 - MessageBox now auto sizes. (Thanks @tig!)
  45. * Fixes #557 - MessageBoxes on small screens. (Thanks @tig!)
  46. * Fixes #432 - MessageBox does not deal with long text; width/height params are goofy. (Thanks @tig!)
  47. * Fixes #35 - Dialog should have 1 char padding. (Thanks @tig!)
  48. * `MessageBox.Query` called with `width` and `height` == 0 get auto-size behavior. A new constructor is added making this easy to use. (Thanks @tig!)
  49. * Multi-line `MessageBox`es are now supported. Just use `\n` to add lines. The height of the MessageBox will adjust automatically. (Thanks @tig!)
  50. * The `MessageBoxes` Scenario in UI Catalog provides a full demo/test-case. (Thanks @tig!)
  51. * `Dialog` called with `width` and `height` == 0 are sized to 85% container. A new constructor is added making this easy to use. (Thanks @tig!)
  52. * Dialog (and MessageBox `Buttons` are now dynamically laid out using Computed layout. (Thanks @tig!)
  53. * A `Dialogs` Scenario has been added to UI Catalog making it easy to test the API. (Thanks @tig!)
  54. * `Button` now supports BOTH specifying a hotkey with '_' and the old behavior of using the first uppercase char (if '_' is not found). (Thanks @tig!)
  55. * All UI Catalog scenarios that use `Dialog` or `MessageBox` now use the simplified API. (Thanks @tig!)
  56. * `Terminal.Gui.dll` now has version metadata and UI Catalog's about box displays it as a test case. (Thanks @tig!)
  57. * Button, Dialog, and MessageBox API documentation has been updated/revised. (Thanks @tig!)
  58. * `View`, `Window`, `FrameView`, and `Dialog` have been upgraded to use the new `ConsoleDriver.DrawFrameWindow` API directly. (Thanks @tig!)
  59. * New ComboBox control (Thanks @fergusonr!)
  60. * ConsoleDriver now supports improved KeyModifers (shift keys) with an expanded Keys Sceanrio in UI Catalog. (Thanks @bdisp!)
  61. * Tons of mouse handling improvements. (Thanks @bdisp!)
  62. * Fsharp sample updated. (Thanks @bdisp!)
  63. * Fixes #562 - Background drawing issue. (Thanks @bdisp!)
  64. * Fixes #517 - Focus and mouse handlers enahced (BREAKING CHANGE). (Thanks @bdisp!)
  65. * Fixed resizing update and correct Toplevel colors without colors. (Thanks @bdisp!)
  66. * Fixed #515, #518, #536, #540. (Thanks @bdisp!)
  67. * Added Threading Scenario to UI catalog. (Thanks @bdisp!)
  68. * Added support for F11 and F12 keys. (Thanks @bdisp!)
  69. * Multiple improvements to Date/TimeField. (Thanks @bdisp!)
  70. * Fixes #409 - Invoke does not cause Wakeup #501. (Thanks @bdisp!)
  71. * Fixed Label text alignment. (Thanks @bdisp!)
  72. * Added mouse features in the Unix version. Supports xterm-1006. (Thanks @bdisp!)
  73. * Several StatusBar fixes. (Thanks @bdisp!)
  74. * Tons of mouse improvements including mouse wheel support (e.g. #404, #409). (Thanks @bdisp!)
  75. * Added a CloseFile method to the TextView as stated in #452. (Thanks @bdisp)
  76. * Added a OpenSelectedItem event to the ListView #429. (Thanks @bdisp!)
  77. * Fixes the return value of the position cursor in the TextField. (Thanks @bdisp!)
  78. * Updates screen on Unix window resizing. (Thanks @bdisp!)
  79. * Fixes the functions of the Edit-Copy-Cut-Paste menu for the TextField that was not working well. (Thanks @bdisp!)
  80. * More robust error handing in Pos/Dim. Fixes #355 stack overflow with Pos based on the size of windows at startup. Added a OnResized action to set the Pos after the terminal are resized. (Thanks @bdisp!)
  81. * Fixes #389 Window layouting breaks when resizing. (Thanks @bdisp!)
  82. * Fixes #557 MessageBox needs to take ustrings (BREAKING CHANGE). (Thanks @tig!)
  83. * Fixes ScrollView in several key ways. (Thanks @tig!)
  84. * Now supports Computed layout and has constructors that don't require parameters.
  85. * ScrollBarViews are now positioned using Computed layout versus error prone absolute
  86. * ScrollBarViews now correctly position themselves when one, either, or both are on/off.
  87. * IsVertical is now a public property that does the expected thing when changed
  88. * Mouse handling is better; there's still a bug where the mouse doesn't get grabbed by the ScrollView initially but I think this is a broader problem. I need @BDisp's help on this.
  89. * Supports "infinite scrolling" via the new OnDrawContent/DrawContent event on the View class.
  90. * The Scrolling Scenario was enhanced to demo dynamically adding/removing horizontal/vertical scrollbars (and to prove it was working right).
  91. * The Checkbox.Toggled event is now an EventHandler event and passes previous state. (Thanks @tig!)
  92. * Fixes #102 All Views now support parameterless constructors. (Thanks @Bdisp and @tig!)
  93. * Fixes #583 Button can now be sized. Button now supports TextAlignment. (Thanks @Bdisp!)
  94. * Fixes #447 All events are now defined in terms of Action instead of EventHanlder. BREAKING CHANGE. (Thanks @bdisp and @tig!)
  95. * Fixes #421 Now builds on Linux with "dotnet build". (Thanks @AArnott!)
  96. * MenuItem now supports checked/selected items. (Thanks @tig!)
  97. * Label no longer incorreclty displays formfeed char. (Thanks @tig!)
  98. * Fixes #645 - RadioGroup now supports unicode. (Thanks @tig!)
  99. * Fixes #573 - RadioGroup supports Computed Layout. (Thanks @tig!)
  100. * RadioGroup now uses a single, good looking, glyph. (Thanks @tig!)
  101. * RadioGroup now supportrs the Action-based event pattern correctly. BREAKING CHANGE. (Thanks @tig!)
  102. * ConsoleDriver and Drivers have new standard glyph definitions for things like right arrow. (Thanks @tig!)
  103. * ScrollView updated to use pretty glyphs. (Thanks @tig!)
  104. * Menubar now uses pretty arrow glyph for sub-menus. (Thanks @tig!)
  105. * The project now has a growing set of unit tests (over 100 tests). (Thanks @tig!)
  106. * View now has a Text property, implemented via the new TextFormatting class. (Thanks @tig!)
  107. * TextAlignment is implemented once across all Views that support it.
  108. * Unicode support is now much more robust and complete; dozens of bugs fixed.
  109. * Any view dervied from View now has a Text property with multi-line text formatting, including word-wrap and hotkey support.
  110. * Label is now mostly just an alias for View; supports Clicked
  111. * Button is now a very thin class derived from View (no API changes).
  112. * Dozens of unit tests for TextAlignment are provided reducing the chance of regressions.
  113. 0.81:
  114. * Fix ncurses engine for macOS/Linux, it works again
  115. * Fixes an issue with referencing views that have not been allocated yet causing a stack overflow
  116. * New OnCloseMenu event on menus
  117. * Button cursor position looks better
  118. * Listview in single-selection mode uses a radio-button look
  119. * Fixes a couple of crashes (356)
  120. * Default the samples to work on Catalina
  121. 0.80: Jumbo update from BDisp:
  122. * Fixed key events traversal for modal dialogs
  123. * Fixes culture info of DataField from pr
  124. * Fixes the rectangle drawing issue
  125. * Redraw issue when setting coordinates of label
  126. * Added sub menus into menu bar with mouse and key navigation
  127. * Added Colors.Menu.Disabled to CursesDriver.cs
  128. * Mouse text selection with cut, copy and paste on text fields
  129. * Change sepChar from char to string in DateField
  130. * Adding a disabled menu item in the demo file
  131. * Fixes Button repainting issue when changing the text length to one smaller
  132. * Fixes Redraw issue when setting coordinates of label
  133. * Fixes ScrollView does not render some content
  134. * Fixed bug in Button that caused a loop redraw calling TerminalResized
  135. * Fixes a repaint issue (282)
  136. * Mouse features added to FileDialog including wheel support.
  137. * Switch netcoreapp target to netstandard2.0
  138. * Added TextView.TextChanged event
  139. * Fixes issue #306 async/await hang (#312)
  140. * Replaced static driver initialization with property getter for reference passing in Core.cs::View class, this allows the library to be reinitialized at any time.
  141. * Made the Shutdown method on Core.cs::Application class public, since there is no reason to keep it private. Applications can shutdown the library and revert the console to the initial stage by calling it.
  142. * Fixed a memory-leak on Drivers/WindowsDriver class by destroying the generated screen buffers at library shutdown by calling CloseHandle.
  143. * Minor change to Core.cs::Application.Init(Func) for better initialization status tracking, via backend property instead of relying on the Top field.
  144. * Moved `ListView.ListWrapper` out of `ListView` migueldeicaza/gui.cs#313` (#315)
  145. * Resizing the MessageBox width to accommodate all message text (#299)
  146. * Timefield format with bounds values (#303)
  147. * Implemented lower and upper bounds to TimeField
  148. * Passing old text to the Changed event handler
  149. * Extract methods on ListView to make it controlable from other controls
  150. 0.70: Bug fixes (320, 321, 306, 304, 291, 299, 303); Surface ListView.ListWrapper, surface various internal methods for use in ListView; Allow list item selection; ; 0.65: Added new TimeField from Jörg Preiß; Fixes for Backtab by Martin Björkström; ListView now supports simple selection; Bug fixes by giladlevi, Daniel Cazzulino and Marius Ungureanu; New Application.Run of T entry point by Daniel Cazzulino; Added various View methods to bring forward, backwards and move views in the hierarchy; Switch to Portable PDBs by Daniel Cazzulino; Dims can now be compared by Daniel Cazzulino; OnMenuOpen handler by giladlevi; Various memory usage optimizations by giladlevi; FileDialog.FilePath is now a full path by Yanwei Wang; ISupportInitialize/ISupportInitializeNotification is now supported thanks to the work from Daniel Cazzulino; Support for non-modal TopLevels by Daniel Cazzulino and Adrian Alonso; 0.24: the Windows driver implements WakeUp, allowing some scenarios like bug #207 to be fixed;
  151. 0.23: Better support for disabled menu items; Raises text changed event after the internals have been updated; Fix Caps-NumLock; Alt-HotKey now work on menus
  152. 0.22: Correct vertical scrollview behavior, Small curses driver fix for terminals without mouse support, TextView support for scrolling, Surface Used property on TextField, Surface Cursor on RadioGroup.
  153. 0.21: Introudce Attribute.Make to more easily create attributes, and fix a bug in the file panel.
  154. 0.20: Expose some of the CursesDriver APIs
  155. 0.19: PageUpDown updates (GaikwadPratik); Fixes in multi-line labels ([email protected]); Support Delete char in TextView (Greg Amidon); Prevent empty TextViews from crashing; Allow TextFields to be updated on the Changed event.
  156. 0.18: Fixes hotkeys for menus (Sang Kil); Fixes RemoveAll for all containers; Allows Toplevels with no views; Fixes FileDialog layout; Prevent crash in TextView
  157. 0.17: Unix, dynamically load ncurses library to support different configurations, and not require -dev on Linux, various bug fixes.
  158. 0.16: Support for Shift-Tab on Windows (fix by @mholo65)
  159. 0.15: WindowsDriver fix for Legacy Console keyboard input (issue #105)
  160. 0.14: WindowsDriver fix for EventType size.
  161. 0.13: Fixes keyboard input for Alt-Gr and numbers.
  162. 0.12: Fixes the text editor merge line command.
  163. 0.11: Simplify TextField implementation, fixes a couple of editing bugs.
  164. 0.10: Fix unicode rendering for TextField, and bring F# example
  165. 0.9: File Open/File Save dialogs, HexView, Windows Driver allows resizing, mouse events, faster (thanks to Nick Van Dyck, nickvdyck for the contribution!), smaller bug fixes,
  166. 0.8: Completes keyboard support on Windows; Fixes delete on Windows, some layout fixes.
  167. 0.7: terminal resizing on Linux propagates sizes with new layout system, and new features on the layout system (documented)
  168. 0.6: new layout system, multi-line textview editor, Linux bug fix for .NET Core
  169. 0.5: support Linux with .NET Core, Windows driver fixes.
  170. 0.4: hotkey handling fix for RadioButtons
  171. 0.3: Fix Windows key input to not echo characters on console, proper Fkey mapping
  172. 0.2: Auto-detect the best console
  173. </PackageReleaseNotes>
  174. </PropertyGroup>
  175. <PropertyGroup>
  176. <IncludeSymbols>true</IncludeSymbols>
  177. <SymbolPackageFormat>snupkg</SymbolPackageFormat>
  178. </PropertyGroup>
  179. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
  180. <DebugType></DebugType>
  181. </PropertyGroup>
  182. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
  183. <DefineConstants>TRACE;DEBUG_IDISPOSABLE</DefineConstants>
  184. </PropertyGroup>
  185. <!--<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net472|AnyCPU'">
  186. <DefineConstants>TRACE</DefineConstants>
  187. </PropertyGroup>
  188. <PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net472|AnyCPU'">
  189. <DefineConstants>TRACE;DEBUG_IDISPOSABLE</DefineConstants>
  190. </PropertyGroup>-->
  191. <ItemGroup>
  192. <PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0" PrivateAssets="true" />
  193. <PackageReference Include="NStack.Core" Version="0.14.0" />
  194. </ItemGroup>
  195. <!--<ItemGroup>
  196. <Reference Include="NStack">
  197. <HintPath>..\..\..\Users\miguel\.nuget\packages\nstack.core\0.14.0\lib\netstandard2.0\NStack.dll</HintPath>
  198. </Reference>
  199. </ItemGroup>-->
  200. <ItemGroup>
  201. <None Remove="ConsoleDrivers\#ConsoleDriver.cs#" />
  202. </ItemGroup>
  203. </Project>