UnitTests.csproj 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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="Microsoft.NET.Test.Sdk" Version="17.10.0" />
  33. <PackageReference Include="ReportGenerator" Version="5.3.7" />
  34. <PackageReference Include="TestableIO.System.IO.Abstractions.TestingHelpers" Version="21.0.22" />
  35. <PackageReference Include="xunit" Version="2.9.0" />
  36. <PackageReference Include="Xunit.Combinatorial" Version="1.6.24" />
  37. <PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
  38. <PrivateAssets>all</PrivateAssets>
  39. <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
  40. </PackageReference>
  41. <PackageReference Include="coverlet.collector" Version="6.0.2">
  42. <PrivateAssets>all</PrivateAssets>
  43. <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
  44. </PackageReference>
  45. </ItemGroup>
  46. <ItemGroup>
  47. <ProjectReference Include="..\Terminal.Gui\Terminal.Gui.csproj" />
  48. <ProjectReference Include="..\UICatalog\UICatalog.csproj" />
  49. </ItemGroup>
  50. <ItemGroup>
  51. <None Update="xunit.runner.json">
  52. <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
  53. </None>
  54. </ItemGroup>
  55. <ItemGroup>
  56. <Using Include="System.Drawing" />
  57. <Using Include="Terminal.Gui" />
  58. <Using Include="Xunit" />
  59. </ItemGroup>
  60. <ItemGroup>
  61. <PackageReference Update="JetBrains.Annotations" Version="2024.2.0" />
  62. </ItemGroup>
  63. <PropertyGroup Label="FineCodeCoverage">
  64. <Enabled>
  65. False
  66. </Enabled>
  67. <Exclude>
  68. [UICatalog]*
  69. </Exclude>
  70. <Include></Include>
  71. <ExcludeByFile>
  72. <!--**/Migrations/*
  73. **/Hacks/*.cs-->
  74. </ExcludeByFile>
  75. <ExcludeByAttribute>
  76. <!--MyCustomExcludeFromCodeCoverage-->
  77. </ExcludeByAttribute>
  78. <IncludeTestAssembly>
  79. False
  80. </IncludeTestAssembly>
  81. </PropertyGroup>
  82. </Project>