Terminal.Gui.csproj 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  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 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. v1.0.0-pre.9
  26. * NEW CONTROL: TreeView - Thanks @tznind!
  27. * Fixes #1066. View sizing across the various terminals has been fixed; works in Windows Terminal again - thanks @bdisp
  28. v1.0.0-pre.8
  29. * NOTE: Windows Terminal is broken - see #1099
  30. * NEW CONTROL: TableView - Thanks @tznind!
  31. * NetDriver is signficantly imporved - thanks @bdisp!
  32. * Fixes #1016. Window is drawing its frame over the menu.
  33. * Fixes #1018. Since childNeedsDisplay is used outside the View class it must to be a property.
  34. * Fixes #1024. TextView is printing theFixes #1030. Getting colors from the Attributes of a ColorScheme. new line character "\n" with a symbol
  35. * Fixes #1030. Getting colors from the Attributes of a ColorScheme.
  36. * Fixes #1034. The NuGet packages need to be updated.
  37. * Fixes #1043. The menu separator is being printed in the wrong place.
  38. * Fixes #93. Audit TextView just like we did TextField to ensure proper treatment of Unicode.
  39. * Fixes #1050. ScrollView takes too long to scroll enormous content size.
  40. * BREAKING CHANGE - Fixes #1052. Application.CurrentView looks unused.
  41. * Fixes #1053. ProcessMouseEvent seems to initialize MouseEvent incorrectly.
  42. * Fixes #1056. Window doesn't redraw his SuperView properly.
  43. * Fixes #1061. ComputerLayout scenario does not drawn correctly.
  44. * Added unhandled exception handling in Application.Run (#1063)
  45. * Fixes #1068. The ResizeView doesn't handle the AutoSize properly.
  46. * Fixes #1071. Toplevel.GetTopLevelSubviews (). Changed from HashSet to IList.
  47. * Fixes #1073, #1058, #480 #1049. Provides more automation to the ScrollBarView, allowing easily implement on any view.
  48. * Application.Shutdown() does not reset SynchronizationContext (#1085).
  49. * Fixes #1088. On WindowsDriver moving the mouse with a button pressed, when it is released, the button clicked event is fired, causing an unintentional event.
  50. * Fixes #1091. Continuous button pressed not working properly on Linux.
  51. * Fixes #1100. TextFormatter doesn't handle ColumnWidth greater than 1.
  52. * Cursor shape and visibility #1102
  53. v1.0.0-pre.6
  54. * If StatusBar.Visible is set to false, TopLevel resizes correctly enabling hiding/showing of a StatusBar. UICatalog demonstrates.
  55. * New sample/demo app - ReactiveExample - Shows how to use reactive extensions and ReactiveUI with gui.cs. (Thanks @worldbeater)
  56. * BREAKING API CHANGE - Removed IEnumerable from View and Window. Use Subviews property instead. See #950.
  57. * Fixes #998. Added a cancelable TextChanging event to prevent the TextChanged event being called if the changing is canceled.
  58. * Fixes #1002. Added a AutoSize property to the View class.
  59. * Fixes #1009. AutoHideScrollBars is causing ScrollView always redrawing.
  60. * Update to .NET 5 RTM
  61. * Fixes #995. Improving TextField to work properly with Unicode characters
  62. * Fixes #999. Toplevel should only redraw the subviews if !NeedDisplay.IsEmpty or layoutNeeded.
  63. * Fixes #992. TextFormatter class now respect the view dimensions. Some typo fixing too.
  64. * Fixes #990. Pos and Dim only can be properly used when all the views are totally initialized.
  65. * Fixes #979. Force call LayoutSubviews to perform layout.
  66. * Fixes #988. Update NStack.Core to version 0.15.0
  67. * Fixes #41 and #949. Unit test to compare the difference between System.Rune and System.Text.Rune.
  68. * Fixes #881, #928. Allowing more key combinations.
  69. * Fixes #976. Mouse prints sequence characters on the terminal and the screen is not fully cleared. Only for netcoreapp3.1.
  70. * BREAKING API CHANGE - #950 - Remove IEnumerable from View and Window
  71. * Fixes #959. CursorPosition with hotkeys.
  72. * Fixes #963. Added support for Unicode in TextField.
  73. * Fixes #961. Recreates the Frame when necessary.
  74. * Fixes #957. Terminal.Gui nuget package in Reactive example version.
  75. * Fixes #933. Updated to work with libncurses 6.2
  76. * Fixes #225 and maybe #41. Allowing Rune.ColumnWidth greater than one.
  77. * Use glyphs for checkmarks and selection.
  78. v0.90 - "Feature Complete" pre-release of Terminal.Gui (aka gui.cs) 1.0. This release is a signficant upgrade from the previous published release (0.81). Most of the major changes and bug fixes are listed below. NOTE: This release includes breaking changes to the API; we will strive to avoid any more breaking changes before 1.0.
  79. What's new:
  80. * New sample/demo app - UI Catalog - Replaces demo.cs with an easy to use and extend set of demo scenarios. (Thanks @tig!)
  81. * The API documentation is completely revamped and updated. Readme upated. Contributors guide added (Thanks @tig!)
  82. * MenuBar can now have MenuItems directly (enables top-level menu items with no submenu). (Thanks @tig!)
  83. * API semantics are much more consistent across classes. For example, all events are now defined in terms of event Action instead of EventHanlder. BREAKING CHANGE. (Thanks @bdisp, @worldbeater, and @tig!)
  84. * The project has been refactored an reorganized to reduce risk of bugs and make it easier to contribute.
  85. * Symbols are now included with the nuget package.
  86. Fixes/Improvements (partial list; see Github issues for complete list):
  87. * Fixes #396 - Text alignnment issues. (Thanks @tig!)
  88. * Fixes #423 - Fix putting results of ocgv on command line erases cursor. (Thanks @tig!)
  89. * Apps can now get KeyUp/KeyDown events. (Thanks @tig!)
  90. * Example/Designer csproj files updated to latest Visual Studio model. (Thanks @tig!)
  91. * Adjusted the default colors for Windows to make more readable. (Thanks @tig!)
  92. * Toplevel.Ready event - Fired once the Toplevel's MainLoop has started (#445). (Thanks @tig!)
  93. * All compile warnings fixed. (Thanks @tig!)
  94. * Fixed a crash in EnsureVisibleBounds. (Thanks @tig!)
  95. * Application.Init/Shutdown are more robust. (Thanks @tig!)
  96. * New "Draw Window Frame" code; consistent across Window, FrameView, and Menu. Fixes many drawing bugs. (Thanks @tig!)
  97. * Fixes #522 - Last view of Frameview not drawn. (Thanks @tig!)
  98. * Clipping has been fixed/restored - it now works properly. (#586) (Thanks @tig!)
  99. * Added a View.LayoutComplete event (#569). (Thanks @tig!)
  100. * Fixes #299 - MessageBox now auto sizes. (Thanks @tig!)
  101. * Fixes #557 - MessageBoxes on small screens. (Thanks @tig!)
  102. * Fixes #432 - MessageBox does not deal with long text; width/height params are goofy. (Thanks @tig!)
  103. * Fixes #35 - Dialog should have 1 char padding. (Thanks @tig!)
  104. * `MessageBox.Query` called with `width` and `height` == 0 get auto-size behavior. A new constructor is added making this easy to use. (Thanks @tig!)
  105. * Multi-line `MessageBox`es are now supported. Just use `\n` to add lines. The height of the MessageBox will adjust automatically. (Thanks @tig!)
  106. * The `MessageBoxes` Scenario in UI Catalog provides a full demo/test-case. (Thanks @tig!)
  107. * `Dialog` called with `width` and `height` == 0 are sized to 85% container. A new constructor is added making this easy to use. (Thanks @tig!)
  108. * Dialog (and MessageBox `Buttons` are now dynamically laid out using Computed layout. (Thanks @tig!)
  109. * A `Dialogs` Scenario has been added to UI Catalog making it easy to test the API. (Thanks @tig!)
  110. * `Button` now supports BOTH specifying a hotkey with '_' and the old behavior of using the first uppercase char (if '_' is not found). (Thanks @tig!)
  111. * All UI Catalog scenarios that use `Dialog` or `MessageBox` now use the simplified API. (Thanks @tig!)
  112. * `Terminal.Gui.dll` now has version metadata and UI Catalog's about box displays it as a test case. (Thanks @tig!)
  113. * Button, Dialog, and MessageBox API documentation has been updated/revised. (Thanks @tig!)
  114. * `View`, `Window`, `FrameView`, and `Dialog` have been upgraded to use the new `ConsoleDriver.DrawFrameWindow` API directly. (Thanks @tig!)
  115. * New ComboBox control (Thanks @fergusonr!)
  116. * ConsoleDriver now supports improved KeyModifers (shift keys) with an expanded Keys Sceanrio in UI Catalog. (Thanks @bdisp!)
  117. * Tons of mouse handling improvements. (Thanks @bdisp!)
  118. * Fsharp sample updated. (Thanks @bdisp!)
  119. * Fixes #562 - Background drawing issue. (Thanks @bdisp!)
  120. * Fixes #517 - Focus and mouse handlers enahced (BREAKING CHANGE). (Thanks @bdisp!)
  121. * Fixed resizing update and correct Toplevel colors without colors. (Thanks @bdisp!)
  122. * Fixed #515, #518, #536, #540. (Thanks @bdisp!)
  123. * Added Threading Scenario to UI catalog. (Thanks @bdisp!)
  124. * Added support for F11 and F12 keys. (Thanks @bdisp!)
  125. * Multiple improvements to Date/TimeField. (Thanks @bdisp!)
  126. * Fixes #409 - Invoke does not cause Wakeup #501. (Thanks @bdisp!)
  127. * Fixed Label text alignment. (Thanks @bdisp!)
  128. * Added mouse features in the Unix version. Supports xterm-1006. (Thanks @bdisp!)
  129. * Several StatusBar fixes. (Thanks @bdisp!)
  130. * Tons of mouse improvements including mouse wheel support (e.g. #404, #409). (Thanks @bdisp!)
  131. * Added a CloseFile method to the TextView as stated in #452. (Thanks @bdisp)
  132. * Added a OpenSelectedItem event to the ListView #429. (Thanks @bdisp!)
  133. * Fixes the return value of the position cursor in the TextField. (Thanks @bdisp!)
  134. * Updates screen on Unix window resizing. (Thanks @bdisp!)
  135. * Fixes the functions of the Edit-Copy-Cut-Paste menu for the TextField that was not working well. (Thanks @bdisp!)
  136. * 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!)
  137. * Fixes #389 Window layouting breaks when resizing. (Thanks @bdisp!)
  138. * Fixes #557 MessageBox needs to take ustrings (BREAKING CHANGE). (Thanks @tig!)
  139. * Fixes ScrollView in several key ways. (Thanks @tig!)
  140. * Now supports Computed layout and has constructors that don't require parameters.
  141. * ScrollBarViews are now positioned using Computed layout versus error prone absolute
  142. * ScrollBarViews now correctly position themselves when one, either, or both are on/off.
  143. * IsVertical is now a public property that does the expected thing when changed
  144. * 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.
  145. * Supports "infinite scrolling" via the new OnDrawContent/DrawContent event on the View class.
  146. * The Scrolling Scenario was enhanced to demo dynamically adding/removing horizontal/vertical scrollbars (and to prove it was working right).
  147. * The Checkbox.Toggled event is now an EventHandler event and passes previous state. (Thanks @tig!)
  148. * Fixes #102 All Views now support parameterless constructors. (Thanks @Bdisp and @tig!)
  149. * Fixes #583 Button can now be sized. Button now supports TextAlignment. (Thanks @Bdisp!)
  150. * Fixes #421 Now builds on Linux with "dotnet build". (Thanks @AArnott!)
  151. * MenuItem now supports checked/selected items. (Thanks @tig!)
  152. * Label no longer incorreclty displays formfeed char. (Thanks @tig!)
  153. * Fixes #645 - RadioGroup now supports unicode. (Thanks @tig!)
  154. * Fixes #573 - RadioGroup supports Computed Layout. (Thanks @tig!)
  155. * RadioGroup now uses a single, good looking, glyph. (Thanks @tig!)
  156. * RadioGroup now supportrs the Action-based event pattern correctly. BREAKING CHANGE. (Thanks @tig!)
  157. * ConsoleDriver and Drivers have new standard glyph definitions for things like right arrow. (Thanks @tig!)
  158. * ScrollView updated to use pretty glyphs. (Thanks @tig!)
  159. * Menubar now uses pretty arrow glyph for sub-menus. (Thanks @tig!)
  160. * View now has a Text property, implemented via the new TextFormatting class. (Thanks @tig!)
  161. * TextAlignment is implemented once across all Views that support it.
  162. * Unicode support is now much more robust and complete; dozens of bugs fixed.
  163. * Any view dervied from View now has a Text property with multi-line text formatting, including word-wrap and hotkey support.
  164. * Label is now mostly just an alias for View; supports Clicked
  165. * Button is now a very thin class derived from View (no API changes).
  166. * Dozens of unit tests for TextAlignment are provided reducing the chance of regressions.
  167. * Fixes #351. Added a horizontal display for RadioGroup. (Thanks @bidsp!)
  168. * Fixes #644. Added a UICatalog Scenario for a dynamic menu bar. (Thanks @bidsp!)
  169. * Fixes #838. Added a Visible property to the View. (Thanks @bidsp!)
  170. </PackageReleaseNotes>
  171. </PropertyGroup>
  172. <PropertyGroup>
  173. <IncludeSymbols>true</IncludeSymbols>
  174. <SymbolPackageFormat>snupkg</SymbolPackageFormat>
  175. </PropertyGroup>
  176. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
  177. <DebugType></DebugType>
  178. </PropertyGroup>
  179. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
  180. <DefineConstants>TRACE;DEBUG_IDISPOSABLE</DefineConstants>
  181. </PropertyGroup>
  182. <!--<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net472|AnyCPU'">
  183. <DefineConstants>TRACE</DefineConstants>
  184. </PropertyGroup>
  185. <PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net472|AnyCPU'">
  186. <DefineConstants>TRACE;DEBUG_IDISPOSABLE</DefineConstants>
  187. </PropertyGroup>-->
  188. <ItemGroup>
  189. <PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0" PrivateAssets="true" />
  190. <PackageReference Include="NStack.Core" Version="0.16.0" />
  191. </ItemGroup>
  192. <!--<ItemGroup>
  193. <Reference Include="NStack">
  194. <HintPath>..\..\..\Users\miguel\.nuget\packages\nstack.core\0.14.0\lib\netstandard2.0\NStack.dll</HintPath>
  195. </Reference>
  196. </ItemGroup>-->
  197. <ItemGroup>
  198. <None Remove="ConsoleDrivers\#ConsoleDriver.cs#" />
  199. </ItemGroup>
  200. </Project>