Terminal.Gui.csproj 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. <Project Sdk="Microsoft.NET.Sdk">
  2. <!-- =================================================================== -->
  3. <!-- Version numbers -->
  4. <!-- Automatically updated by gitversion (run `dotnet-gitversion`) -->
  5. <!-- GitVersion.xml controls settings -->
  6. <!-- See ./README.md for more -->
  7. <!-- =================================================================== -->
  8. <PropertyGroup>
  9. <Version>2.0.0</Version>
  10. </PropertyGroup>
  11. <!-- =================================================================== -->
  12. <!-- Assembly name. -->
  13. <!-- Referenced throughout this file for consistency. -->
  14. <!-- =================================================================== -->
  15. <PropertyGroup>
  16. <AssemblyName>Terminal.Gui</AssemblyName>
  17. </PropertyGroup>
  18. <!-- =================================================================== -->
  19. <!-- .NET Build Settings -->
  20. <!-- =================================================================== -->
  21. <PropertyGroup>
  22. <!--Note - These three SHOULD be picked up from Directory.Build.props, but they are not. Not sure why. -->
  23. <TargetFramework>net8.0</TargetFramework>
  24. <LangVersion>12</LangVersion>
  25. <ImplicitUsings>enable</ImplicitUsings>
  26. <!-- -->
  27. <RootNamespace>$(AssemblyName)</RootNamespace>
  28. <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
  29. <DefineTrace>true</DefineTrace>
  30. <DebugType>portable</DebugType>
  31. <DefineConstants>$(DefineConstants);CONTRACTS_FULL;CODE_ANALYSIS</DefineConstants>
  32. <NoLogo>true</NoLogo>
  33. <SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
  34. <JsonSerializerIsReflectionEnabledByDefault>false</JsonSerializerIsReflectionEnabledByDefault>
  35. <IsTrimmable>true</IsTrimmable>
  36. <IsAotCompatible>true</IsAotCompatible>
  37. </PropertyGroup>
  38. <PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
  39. <DefineDebug>true</DefineDebug>
  40. <DefineConstants>$(DefineConstants);DEBUG_IDISPOSABLE</DefineConstants>
  41. </PropertyGroup>
  42. <PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
  43. <Optimize>true</Optimize>
  44. <VersionSuffix></VersionSuffix>
  45. </PropertyGroup>
  46. <!-- =================================================================== -->
  47. <!-- Configuration Manager -->
  48. <!-- =================================================================== -->
  49. <ItemGroup>
  50. <None Remove="Resources\config.json" />
  51. <EmbeddedResource Include="Resources\config.json" />
  52. </ItemGroup>
  53. <!-- =================================================================== -->
  54. <!-- Dependencies -->
  55. <!-- =================================================================== -->
  56. <ItemGroup>
  57. <PackageReference Include="ColorHelper" />
  58. <PackageReference Include="JetBrains.Annotations" />
  59. <PackageReference Include="Microsoft.CodeAnalysis" />
  60. <PackageReference Include="Microsoft.CodeAnalysis.Common" />
  61. <PackageReference Include="Microsoft.CodeAnalysis.CSharp" />
  62. <PackageReference Include="Microsoft.Extensions.Logging" />
  63. <PackageReference Include="System.IO.Abstractions" />
  64. <PackageReference Include="System.Text.Json" />
  65. <PackageReference Include="Wcwidth" />
  66. <!-- Enable Nuget Source Link for github -->
  67. <PackageReference Include="Microsoft.SourceLink.GitHub" />
  68. </ItemGroup>
  69. <!-- =================================================================== -->
  70. <!-- Global Usings and Type Aliases -->
  71. <!-- =================================================================== -->
  72. <ItemGroup>
  73. <Using Include="JetBrains.Annotations" />
  74. <Using Include="JetBrains.Annotations.PureAttribute" Alias="PureAttribute" />
  75. <Using Include="System.Drawing" />
  76. <Using Include="System.Text" />
  77. <Using Include="Terminal.Gui.EnumExtensions" />
  78. </ItemGroup>
  79. <!-- =================================================================== -->
  80. <!-- Assembliy names for which internal items are visible -->
  81. <!-- =================================================================== -->
  82. <ItemGroup>
  83. <InternalsVisibleTo Include="UnitTests" />
  84. <InternalsVisibleTo Include="UnitTests.Parallelizable" />
  85. <InternalsVisibleTo Include="StressTests" />
  86. <InternalsVisibleTo Include="IntegrationTests" />
  87. <InternalsVisibleTo Include="TerminalGuiDesigner" />
  88. <InternalsVisibleTo Include="DynamicProxyGenAssembly2" />
  89. </ItemGroup>
  90. <!-- =================================================================== -->
  91. <!-- API Documentation -->
  92. <!-- =================================================================== -->
  93. <ItemGroup>
  94. <None Include="..\docfx\images\logo.png">
  95. <Pack>true</Pack>
  96. <PackagePath>\</PackagePath>
  97. </None>
  98. <None Include="..\README.md">
  99. <Pack>true</Pack>
  100. <PackagePath>\</PackagePath>
  101. </None>
  102. </ItemGroup>
  103. <!-- =================================================================== -->
  104. <!-- i18 -->
  105. <!-- =================================================================== -->
  106. <ItemGroup>
  107. <Compile Update="Resources\Strings.Designer.cs">
  108. <DesignTime>true</DesignTime>
  109. <AutoGen>true</AutoGen>
  110. <DependentUpon>Strings.resx</DependentUpon>
  111. </Compile>
  112. </ItemGroup>
  113. <ItemGroup>
  114. <EmbeddedResource Update="Resources\Strings.resx">
  115. <Generator>ResXFileCodeGenerator</Generator>
  116. <LastGenOutput>Strings.Designer.cs</LastGenOutput>
  117. </EmbeddedResource>
  118. </ItemGroup>
  119. <!-- =================================================================== -->
  120. <!-- Nuget -->
  121. <!-- =================================================================== -->
  122. <PropertyGroup>
  123. <PackageId>$(AssemblyName)</PackageId>
  124. <PackageLicenseExpression>MIT</PackageLicenseExpression>
  125. <PackageProjectUrl>https://github.com/gui-cs/$(AssemblyName)</PackageProjectUrl>
  126. <PackageIcon>logo.png</PackageIcon>
  127. <PackageReadmeFile>README.md</PackageReadmeFile>
  128. <PackageTags>csharp, terminal, c#, f#, gui, toolkit, console, tui</PackageTags>
  129. <Description>Cross platform Terminal UI toolkit for .NET</Description>
  130. <Owners>Miguel de Icaza, Tig Kindel</Owners>
  131. <Summary>A toolkit for building rich console apps for .NET that works on Windows, Mac, and Linux/Unix.</Summary>
  132. <Title>$(AssemblyName) - Cross-platform Terminal User Interface (TUI) toolkit for .NET</Title>
  133. <PackageReleaseNotes>
  134. See: $(PackageProjectUrl)/releases
  135. </PackageReleaseNotes>
  136. <DocumentationFile>bin\$(Configuration)\$(AssemblyName).xml</DocumentationFile>
  137. <GeneratePackageOnBuild Condition=" '$(Configuration)' == 'Debug' ">true</GeneratePackageOnBuild>
  138. <GeneratePackageOnBuild>true</GeneratePackageOnBuild>
  139. <RepositoryUrl>https://github.com/gui-cs/$(AssemblyName).git</RepositoryUrl>
  140. <RepositoryType>git</RepositoryType>
  141. <IncludeSymbols>true</IncludeSymbols>
  142. <SymbolPackageFormat>snupkg</SymbolPackageFormat>
  143. <!-- Publish the repository URL in the built .nupkg (in the NuSpec <Repository> element) -->
  144. <PublishRepositoryUrl>true</PublishRepositoryUrl>
  145. <GitRepositoryRemoteName>upstream</GitRepositoryRemoteName>
  146. <!-- Embed source files that are not tracked by the source control manager in the PDB -->
  147. <EmbedUntrackedSources>true</EmbedUntrackedSources>
  148. <EnableSourceLink>true</EnableSourceLink>
  149. <Authors>Miguel de Icaza, Tig Kindel (@tig), @BDisp</Authors>
  150. </PropertyGroup>
  151. <ProjectExtensions>
  152. <VisualStudio>
  153. <UserProperties resources_4config_1json__JsonSchema="../../docfx/schemas/tui-config-schema.json" />
  154. </VisualStudio>
  155. </ProjectExtensions>
  156. <Target Name="CopyNuGetPackagesToLocalPackagesFolder" AfterTargets="Pack" Condition="'$(Configuration)' == 'Release'">
  157. <PropertyGroup>
  158. <!-- Define the path for local_packages relative to the project directory -->
  159. <LocalPackagesPath>$(MSBuildThisFileDirectory)..\local_packages\</LocalPackagesPath>
  160. <!-- Output path without framework-specific folders -->
  161. <PackageOutputPath>$(MSBuildThisFileDirectory)bin\$(Configuration)\</PackageOutputPath>
  162. </PropertyGroup>
  163. <!-- Ensure the local_packages folder exists -->
  164. <Message Text="Checking if $(LocalPackagesPath) exists, creating if necessary." Importance="high" />
  165. <MakeDir Directories="$(LocalPackagesPath)" />
  166. <!-- Collect .nupkg and .snupkg files into an item group -->
  167. <ItemGroup>
  168. <NuGetPackages Include="$(PackageOutputPath)*.nupkg;$(PackageOutputPath)*.snupkg" />
  169. </ItemGroup>
  170. <!-- Check if any packages were found -->
  171. <Message Text="Found packages: @(NuGetPackages)" Importance="high" />
  172. <!-- Copy files only if found -->
  173. <Copy SourceFiles="@(NuGetPackages)" DestinationFolder="$(LocalPackagesPath)" SkipUnchangedFiles="false" Condition="@(NuGetPackages) != ''" />
  174. <!-- Log success -->
  175. <Message Text="Copy completed successfully." Importance="high" />
  176. </Target>
  177. </Project>