Terminal.Gui.csproj 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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,2)" />
  52. <PackageReference Include="JetBrains.Annotations" Version="[2024,)" PrivateAssets="all" />
  53. <PackageReference Include="Microsoft.CodeAnalysis" Version="[4.10,5)" PrivateAssets="all" />
  54. <PackageReference Include="Microsoft.CodeAnalysis.Common" Version="[4.10,5)" PrivateAssets="all" />
  55. <PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="[4.10,5)" PrivateAssets="all" />
  56. <!-- Enable Nuget Source Link for github -->
  57. <PackageReference Include="Microsoft.SourceLink.GitHub" Version="[8,9)" PrivateAssets="all" />
  58. <PackageReference Include="System.IO.Abstractions" Version="[21.0.22,22)" />
  59. <PackageReference Include="System.Text.Json" Version="[8.0.4,9)" />
  60. <PackageReference Include="Wcwidth" Version="[2,3)" />
  61. <ProjectReference Include="..\Analyzers\Terminal.Gui.Analyzers.Internal\Terminal.Gui.Analyzers.Internal.csproj">
  62. <PrivateAssets>all</PrivateAssets>
  63. <OutputItemType>Analyzer</OutputItemType>
  64. <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
  65. </ProjectReference>
  66. </ItemGroup>
  67. <!-- =================================================================== -->
  68. <!-- Global Usings and Type Aliases -->
  69. <!-- =================================================================== -->
  70. <ItemGroup>
  71. <Using Include="JetBrains.Annotations" />
  72. <Using Include="JetBrains.Annotations.PureAttribute" Alias="PureAttribute" />
  73. <Using Include="System.Drawing" />
  74. <Using Include="System.Text" />
  75. <Using Include="Terminal.Gui.EnumExtensions" />
  76. </ItemGroup>
  77. <!-- =================================================================== -->
  78. <!-- Assembliy names for which internal items are visible -->
  79. <!-- =================================================================== -->
  80. <ItemGroup>
  81. <InternalsVisibleTo Include="UnitTests" />
  82. <InternalsVisibleTo Include="TerminalGuiDesigner" />
  83. </ItemGroup>
  84. <!-- =================================================================== -->
  85. <!-- API Documentation -->
  86. <!-- =================================================================== -->
  87. <ItemGroup>
  88. <None Include="..\docfx\images\logo.png">
  89. <Pack>true</Pack>
  90. <PackagePath>\</PackagePath>
  91. </None>
  92. <None Include="..\README.md">
  93. <Pack>true</Pack>
  94. <PackagePath>\</PackagePath>
  95. </None>
  96. </ItemGroup>
  97. <!-- =================================================================== -->
  98. <!-- i18 -->
  99. <!-- =================================================================== -->
  100. <ItemGroup>
  101. <Compile Update="Resources\Strings.Designer.cs">
  102. <DesignTime>true</DesignTime>
  103. <AutoGen>true</AutoGen>
  104. <DependentUpon>Strings.resx</DependentUpon>
  105. </Compile>
  106. </ItemGroup>
  107. <ItemGroup>
  108. <EmbeddedResource Update="Resources\Strings.resx">
  109. <Generator>ResXFileCodeGenerator</Generator>
  110. <LastGenOutput>Strings.Designer.cs</LastGenOutput>
  111. </EmbeddedResource>
  112. </ItemGroup>
  113. <!-- =================================================================== -->
  114. <!-- Nuget -->
  115. <!-- =================================================================== -->
  116. <PropertyGroup>
  117. <PackageId>$(AssemblyName)</PackageId>
  118. <PackageLicenseExpression>MIT</PackageLicenseExpression>
  119. <PackageProjectUrl>https://github.com/gui-cs/$(AssemblyName)</PackageProjectUrl>
  120. <PackageIcon>logo.png</PackageIcon>
  121. <PackageReadmeFile>README.md</PackageReadmeFile>
  122. <PackageTags>csharp, terminal, c#, f#, gui, toolkit, console, tui</PackageTags>
  123. <Description>Cross platform Terminal UI toolkit for .NET</Description>
  124. <Owners>Miguel de Icaza, Tig Kindel</Owners>
  125. <Summary>A toolkit for building rich console apps for .NET that works on Windows, Mac, and Linux/Unix.</Summary>
  126. <Title>$(AssemblyName) - Cross-platform Terminal User Interface (TUI) toolkit for .NET</Title>
  127. <PackageReleaseNotes>
  128. See: $(PackageProjectUrl)/releases
  129. </PackageReleaseNotes>
  130. <DocumentationFile>bin\$(Configuration)\$(AssemblyName).xml</DocumentationFile>
  131. <GeneratePackageOnBuild Condition=" '$(Configuration)' == 'Debug' ">true</GeneratePackageOnBuild>
  132. <GeneratePackageOnBuild>true</GeneratePackageOnBuild>
  133. <RepositoryUrl>https://github.com/gui-cs/$(AssemblyName).git</RepositoryUrl>
  134. <RepositoryType>git</RepositoryType>
  135. <IncludeSymbols>true</IncludeSymbols>
  136. <SymbolPackageFormat>snupkg</SymbolPackageFormat>
  137. <!-- Publish the repository URL in the built .nupkg (in the NuSpec <Repository> element) -->
  138. <PublishRepositoryUrl>true</PublishRepositoryUrl>
  139. <GitRepositoryRemoteName>upstream</GitRepositoryRemoteName>
  140. <!-- Embed source files that are not tracked by the source control manager in the PDB -->
  141. <EmbedUntrackedSources>true</EmbedUntrackedSources>
  142. <EnableSourceLink>true</EnableSourceLink>
  143. <Authors>Miguel de Icaza, Tig Kindel (@tig), @BDisp</Authors>
  144. </PropertyGroup>
  145. </Project>