UnitTests.csproj 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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)|$(Platform)'=='Debug|AnyCPU'">
  25. <DefineDebug>True</DefineDebug>
  26. <DefineConstants>$(DefineConstants);DEBUG_IDISPOSABLE</DefineConstants>
  27. </PropertyGroup>
  28. <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
  29. <Optimize>True</Optimize>
  30. </PropertyGroup>
  31. <ItemGroup>
  32. <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
  33. <PackageReference Include="ReportGenerator" Version="5.2.2" />
  34. <PackageReference Include="TestableIO.System.IO.Abstractions.TestingHelpers" Version="20.0.15" />
  35. <PackageReference Include="xunit" Version="2.7.0" />
  36. <PackageReference Include="Xunit.Combinatorial" Version="1.6.24" />
  37. <PackageReference Include="xunit.runner.visualstudio" Version="2.5.7">
  38. <PrivateAssets>all</PrivateAssets>
  39. <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
  40. </PackageReference>
  41. <PackageReference Include="coverlet.collector" Version="6.0.1">
  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. <PropertyGroup Label="FineCodeCoverage">
  61. <Enabled>
  62. False
  63. </Enabled>
  64. <Exclude>
  65. [UICatalog]*
  66. </Exclude>
  67. <Include></Include>
  68. <ExcludeByFile>
  69. <!--**/Migrations/*
  70. **/Hacks/*.cs-->
  71. </ExcludeByFile>
  72. <ExcludeByAttribute>
  73. <!--MyCustomExcludeFromCodeCoverage-->
  74. </ExcludeByAttribute>
  75. <IncludeTestAssembly>
  76. False
  77. </IncludeTestAssembly>
  78. <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
  79. <ImplicitUsings>enable</ImplicitUsings>
  80. </PropertyGroup>
  81. </Project>