UnitTests.csproj 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <Project Sdk="Microsoft.NET.Sdk">
  2. <PropertyGroup>
  3. <TargetFramework>net6.0</TargetFramework>
  4. <IsPackable>false</IsPackable>
  5. <UseDataCollector />
  6. </PropertyGroup>
  7. <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
  8. <DefineConstants>TRACE</DefineConstants>
  9. </PropertyGroup>
  10. <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
  11. <DefineConstants>TRACE;DEBUG_IDISPOSABLE</DefineConstants>
  12. </PropertyGroup>
  13. <ItemGroup>
  14. <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0" />
  15. <PackageReference Include="ReportGenerator" Version="5.1.2" />
  16. <PackageReference Include="System.Collections" Version="4.3.0" />
  17. <PackageReference Include="xunit" Version="2.4.1" />
  18. <PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
  19. <PrivateAssets>all</PrivateAssets>
  20. <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
  21. </PackageReference>
  22. <PackageReference Include="coverlet.collector" Version="3.1.2">
  23. <PrivateAssets>all</PrivateAssets>
  24. <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
  25. </PackageReference>
  26. </ItemGroup>
  27. <ItemGroup>
  28. <ProjectReference Include="..\Terminal.Gui\Terminal.Gui.csproj" />
  29. <ProjectReference Include="..\UICatalog\UICatalog.csproj" />
  30. </ItemGroup>
  31. <PropertyGroup Label="FineCodeCoverage">
  32. <Enabled>
  33. True
  34. </Enabled>
  35. <Exclude>
  36. [UICatalog]*
  37. </Exclude>
  38. <Include>
  39. </Include>
  40. <ExcludeByFile>
  41. <!--**/Migrations/*
  42. **/Hacks/*.cs-->
  43. </ExcludeByFile>
  44. <ExcludeByAttribute>
  45. <!--MyCustomExcludeFromCodeCoverage-->
  46. </ExcludeByAttribute>
  47. <IncludeTestAssembly>
  48. False
  49. </IncludeTestAssembly>
  50. </PropertyGroup>
  51. </Project>