UnitTests.csproj 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <Project Sdk="Microsoft.NET.Sdk">
  2. <PropertyGroup>
  3. <!-- Version numbers are automatically updated by gitversion when a release is released -->
  4. <!-- In the source tree the version will always be 2.0 for all projects. -->
  5. <!-- Do not modify these. -->
  6. <AssemblyVersion>2.0</AssemblyVersion>
  7. <FileVersion>2.0</FileVersion>
  8. <Version>2.0</Version>
  9. <InformationalVersion>2.0</InformationalVersion>
  10. </PropertyGroup>
  11. <PropertyGroup>
  12. <TargetFramework>net8.0</TargetFramework>
  13. <LangVersion>12</LangVersion>
  14. <IsPackable>false</IsPackable>
  15. <UseDataCollector />
  16. <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
  17. <DefineTrace>true</DefineTrace>
  18. <DebugType>portable</DebugType>
  19. <DefineConstants>$(DefineConstants);JETBRAINS_ANNOTATIONS;CONTRACTS_FULL</DefineConstants>
  20. <ImplicitUsings>enable</ImplicitUsings>
  21. <NoLogo>true</NoLogo>
  22. <SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
  23. </PropertyGroup>
  24. <PropertyGroup Condition="'$(Configuration)'=='Debug'">
  25. <DefineDebug>true</DefineDebug>
  26. <DefineConstants>$(DefineConstants);DEBUG_IDISPOSABLE</DefineConstants>
  27. </PropertyGroup>
  28. <PropertyGroup Condition="'$(Configuration)'=='Release'">
  29. <Optimize>true</Optimize>
  30. </PropertyGroup>
  31. <ItemGroup>
  32. <PackageReference Include="JetBrains.Annotations" Version="[2024.2.0,)" PrivateAssets="all" />
  33. <PackageReference Include="Microsoft.NET.Test.Sdk" Version="[17.10,18)" />
  34. <PackageReference Include="ReportGenerator" Version="[5.3.7,6)" />
  35. <PackageReference Include="TestableIO.System.IO.Abstractions.TestingHelpers" Version="[21.0.22,22)" />
  36. <PackageReference Include="xunit" Version="[2.9.0,3)" />
  37. <PackageReference Include="Xunit.Combinatorial" Version="[1.6.24,2)" />
  38. <PackageReference Include="xunit.runner.visualstudio" Version="[2.8.2,3)">
  39. <PrivateAssets>all</PrivateAssets>
  40. <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
  41. </PackageReference>
  42. <PackageReference Include="coverlet.collector" Version="[6.0.2,7)">
  43. <PrivateAssets>all</PrivateAssets>
  44. <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
  45. </PackageReference>
  46. </ItemGroup>
  47. <ItemGroup>
  48. <ProjectReference Include="..\Terminal.Gui\Terminal.Gui.csproj" />
  49. <ProjectReference Include="..\UICatalog\UICatalog.csproj" />
  50. </ItemGroup>
  51. <ItemGroup>
  52. <None Update="xunit.runner.json">
  53. <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
  54. </None>
  55. </ItemGroup>
  56. <ItemGroup>
  57. <Using Include="System.Drawing" />
  58. <Using Include="Terminal.Gui" />
  59. <Using Include="Xunit" />
  60. </ItemGroup>
  61. <PropertyGroup Label="FineCodeCoverage">
  62. <Enabled>
  63. False
  64. </Enabled>
  65. <Exclude>
  66. [UICatalog]*
  67. </Exclude>
  68. <Include></Include>
  69. <ExcludeByFile>
  70. <!--**/Migrations/*
  71. **/Hacks/*.cs-->
  72. </ExcludeByFile>
  73. <ExcludeByAttribute>
  74. <!--MyCustomExcludeFromCodeCoverage-->
  75. </ExcludeByAttribute>
  76. <IncludeTestAssembly>
  77. False
  78. </IncludeTestAssembly>
  79. </PropertyGroup>
  80. </Project>