UnitTests.csproj 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <Project Sdk="Microsoft.NET.Sdk">
  2. <PropertyGroup>
  3. <TargetFramework>net7.0</TargetFramework>
  4. <!-- https://stackoverflow.com/questions/294216/why-does-c-sharp-forbid-generic-attribute-types -->
  5. <!-- for AutoInitShutdown attribute -->
  6. <LangVersion>Preview</LangVersion>
  7. <IsPackable>false</IsPackable>
  8. <UseDataCollector />
  9. <!-- Version numbers are automatically updated by gitversion when a release is released -->
  10. <!-- In the source tree the version will always be 2.0 for all projects. -->
  11. <!-- Do not modify these. -->
  12. <AssemblyVersion>2.0</AssemblyVersion>
  13. <FileVersion>2.0</FileVersion>
  14. <Version>2.0</Version>
  15. <InformationalVersion>2.0</InformationalVersion>
  16. </PropertyGroup>
  17. <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
  18. <DefineConstants>TRACE</DefineConstants>
  19. </PropertyGroup>
  20. <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
  21. <DefineConstants>TRACE;DEBUG_IDISPOSABLE</DefineConstants>
  22. </PropertyGroup>
  23. <ItemGroup>
  24. <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.5.0" />
  25. <PackageReference Include="ReportGenerator" Version="5.1.18" />
  26. <PackageReference Include="System.Collections" Version="4.3.0" />
  27. <PackageReference Include="TestableIO.System.IO.Abstractions.TestingHelpers" Version="19.2.4" />
  28. <PackageReference Include="xunit" Version="2.4.2" />
  29. <PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
  30. <PrivateAssets>all</PrivateAssets>
  31. <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
  32. </PackageReference>
  33. <PackageReference Include="coverlet.collector" Version="3.2.0">
  34. <PrivateAssets>all</PrivateAssets>
  35. <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
  36. </PackageReference>
  37. </ItemGroup>
  38. <ItemGroup>
  39. <ProjectReference Include="..\Terminal.Gui\Terminal.Gui.csproj" />
  40. <ProjectReference Include="..\UICatalog\UICatalog.csproj" />
  41. </ItemGroup>
  42. <PropertyGroup Label="FineCodeCoverage">
  43. <Enabled>
  44. True
  45. </Enabled>
  46. <Exclude>
  47. [UICatalog]*
  48. </Exclude>
  49. <Include></Include>
  50. <ExcludeByFile>
  51. <!--**/Migrations/*
  52. **/Hacks/*.cs-->
  53. </ExcludeByFile>
  54. <ExcludeByAttribute>
  55. <!--MyCustomExcludeFromCodeCoverage-->
  56. </ExcludeByAttribute>
  57. <IncludeTestAssembly>
  58. False
  59. </IncludeTestAssembly>
  60. </PropertyGroup>
  61. </Project>