Terminal.Gui.csproj 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <Project Sdk="Microsoft.NET.Sdk">
  2. <!-- =================================================================== -->
  3. <!-- Version numbers -->
  4. <!-- Automatically updated by gitversion (run `dotnet-gitversion /updateprojectfiles`) -->
  5. <!-- GitVersion.xml controls settings -->
  6. <!-- =================================================================== -->
  7. <PropertyGroup>
  8. <Version>2.0.0</Version>
  9. </PropertyGroup>
  10. <!-- =================================================================== -->
  11. <!-- Assembly name. -->
  12. <!-- Referenced throughout this file for consistency. -->
  13. <!-- =================================================================== -->
  14. <PropertyGroup>
  15. <AssemblyName>Terminal.Gui</AssemblyName>
  16. </PropertyGroup>
  17. <!-- =================================================================== -->
  18. <!-- .NET Build Settings -->
  19. <!-- =================================================================== -->
  20. <PropertyGroup>
  21. <TargetFramework>net8.0</TargetFramework>
  22. <LangVersion>12</LangVersion>
  23. <RootNamespace>$(AssemblyName)</RootNamespace>
  24. <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
  25. <DefineTrace>true</DefineTrace>
  26. <DebugType>portable</DebugType>
  27. <DefineConstants>$(DefineConstants);JETBRAINS_ANNOTATIONS;CONTRACTS_FULL;CODE_ANALYSIS</DefineConstants>
  28. <ImplicitUsings>enable</ImplicitUsings>
  29. <NoLogo>true</NoLogo>
  30. <SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
  31. </PropertyGroup>
  32. <PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
  33. <DefineDebug>true</DefineDebug>
  34. <DefineConstants>$(DefineConstants);DEBUG_IDISPOSABLE</DefineConstants>
  35. </PropertyGroup>
  36. <PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
  37. <Optimize>true</Optimize>
  38. <VersionSuffix></VersionSuffix>
  39. </PropertyGroup>
  40. <!-- =================================================================== -->
  41. <!-- Configuration Manager -->
  42. <!-- =================================================================== -->
  43. <ItemGroup>
  44. <None Remove="Resources\config.json" />
  45. <EmbeddedResource Include="Resources\config.json" />
  46. </ItemGroup>
  47. <!-- =================================================================== -->
  48. <!-- Dependencies -->
  49. <!-- =================================================================== -->
  50. <ItemGroup>
  51. <PackageReference Include="ColorHelper" Version="1.8.1" />
  52. <PackageReference Include="JetBrains.Annotations" Version="2024.2.0" PrivateAssets="all" />
  53. <PackageReference Include="Microsoft.CodeAnalysis" Version="4.10.0" PrivateAssets="all" />
  54. <PackageReference Include="Microsoft.CodeAnalysis.Common" Version="4.10.0" PrivateAssets="all" />
  55. <PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.10.0" PrivateAssets="all" />
  56. <!-- Enable Nuget Source Link for github -->
  57. <PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="all" />
  58. <PackageReference Include="System.IO.Abstractions" Version="21.0.22" />
  59. <PackageReference Include="System.Text.Json" Version="8.0.4" />
  60. <PackageReference Include="Wcwidth" Version="2.0.0" />
  61. </ItemGroup>
  62. <!-- =================================================================== -->
  63. <!-- Global Usings and Type Aliases -->
  64. <!-- =================================================================== -->
  65. <ItemGroup>
  66. <Using Include="JetBrains.Annotations" />
  67. <Using Include="JetBrains.Annotations.PureAttribute" Alias="PureAttribute" />
  68. <Using Include="System.Drawing" />
  69. <Using Include="System.Text" />
  70. </ItemGroup>
  71. <!-- =================================================================== -->
  72. <!-- Assembliy names for which internal items are visible -->
  73. <!-- =================================================================== -->
  74. <ItemGroup>
  75. <InternalsVisibleTo Include="UnitTests" />
  76. <InternalsVisibleTo Include="TerminalGuiDesigner" />
  77. </ItemGroup>
  78. <!-- =================================================================== -->
  79. <!-- API Documentation -->
  80. <!-- =================================================================== -->
  81. <ItemGroup>
  82. <None Include="..\docfx\images\logo.png">
  83. <Pack>true</Pack>
  84. <PackagePath>\</PackagePath>
  85. </None>
  86. <None Include="..\README.md">
  87. <Pack>true</Pack>
  88. <PackagePath>\</PackagePath>
  89. </None>
  90. </ItemGroup>
  91. <!-- =================================================================== -->
  92. <!-- i18 -->
  93. <!-- =================================================================== -->
  94. <ItemGroup>
  95. <Compile Update="Resources\Strings.Designer.cs">
  96. <DesignTime>true</DesignTime>
  97. <AutoGen>true</AutoGen>
  98. <DependentUpon>Strings.resx</DependentUpon>
  99. </Compile>
  100. </ItemGroup>
  101. <ItemGroup>
  102. <EmbeddedResource Update="Resources\Strings.resx">
  103. <Generator>ResXFileCodeGenerator</Generator>
  104. <LastGenOutput>Strings.Designer.cs</LastGenOutput>
  105. </EmbeddedResource>
  106. </ItemGroup>
  107. <!-- =================================================================== -->
  108. <!-- Nuget -->
  109. <!-- =================================================================== -->
  110. <PropertyGroup>
  111. <PackageId>$(AssemblyName)</PackageId>
  112. <PackageLicenseExpression>MIT</PackageLicenseExpression>
  113. <PackageProjectUrl>https://github.com/gui-cs/$(AssemblyName)</PackageProjectUrl>
  114. <PackageIcon>logo.png</PackageIcon>
  115. <PackageReadmeFile>README.md</PackageReadmeFile>
  116. <PackageTags>csharp, terminal, c#, f#, gui, toolkit, console, tui</PackageTags>
  117. <Description>Cross platform Terminal UI toolkit for .NET</Description>
  118. <Owners>Miguel de Icaza, Tig Kindel</Owners>
  119. <Summary>A toolkit for building rich console apps for .NET that works on Windows, Mac, and Linux/Unix.</Summary>
  120. <Title>$(AssemblyName) - Cross-platform Terminal User Interface (TUI) toolkit for .NET</Title>
  121. <PackageReleaseNotes>
  122. See: $(PackageProjectUrl)/releases
  123. </PackageReleaseNotes>
  124. <DocumentationFile>bin\$(Configuration)\$(AssemblyName).xml</DocumentationFile>
  125. <GeneratePackageOnBuild Condition=" '$(Configuration)' == 'Debug' ">true</GeneratePackageOnBuild>
  126. <GeneratePackageOnBuild>true</GeneratePackageOnBuild>
  127. <RepositoryUrl>https://github.com/gui-cs/$(AssemblyName).git</RepositoryUrl>
  128. <RepositoryType>git</RepositoryType>
  129. <IncludeSymbols>true</IncludeSymbols>
  130. <SymbolPackageFormat>snupkg</SymbolPackageFormat>
  131. <!-- Publish the repository URL in the built .nupkg (in the NuSpec <Repository> element) -->
  132. <PublishRepositoryUrl>true</PublishRepositoryUrl>
  133. <GitRepositoryRemoteName>upstream</GitRepositoryRemoteName>
  134. <!-- Embed source files that are not tracked by the source control manager in the PDB -->
  135. <EmbedUntrackedSources>true</EmbedUntrackedSources>
  136. <EnableSourceLink>true</EnableSourceLink>
  137. <Authors>Miguel de Icaza, Tig Kindel (@tig), @BDisp</Authors>
  138. </PropertyGroup>
  139. </Project>