UnitTests.csproj 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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.6.3" />
  25. <PackageReference Include="ReportGenerator" Version="5.1.23" />
  26. <PackageReference Include="System.Collections" Version="4.3.0" />
  27. <PackageReference Include="TestableIO.System.IO.Abstractions.TestingHelpers" Version="19.2.29" />
  28. <PackageReference Include="xunit" Version="2.5.0" />
  29. <PackageReference Include="xunit.runner.visualstudio" Version="2.5.0">
  30. <PrivateAssets>all</PrivateAssets>
  31. <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
  32. </PackageReference>
  33. <PackageReference Include="coverlet.collector" Version="6.0.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. <ItemGroup>
  43. <None Update="xunit.runner.json">
  44. <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
  45. </None>
  46. </ItemGroup>
  47. <PropertyGroup Label="FineCodeCoverage">
  48. <Enabled>
  49. False
  50. </Enabled>
  51. <Exclude>
  52. [UICatalog]*
  53. </Exclude>
  54. <Include></Include>
  55. <ExcludeByFile>
  56. <!--**/Migrations/*
  57. **/Hacks/*.cs-->
  58. </ExcludeByFile>
  59. <ExcludeByAttribute>
  60. <!--MyCustomExcludeFromCodeCoverage-->
  61. </ExcludeByAttribute>
  62. <IncludeTestAssembly>
  63. False
  64. </IncludeTestAssembly>
  65. </PropertyGroup>
  66. </Project>