Terminal.Gui.csproj 7.3 KB

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