UnitTests.csproj 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. <!-- Do not modify these. -->
  11. <AssemblyVersion>1.14.0.0</AssemblyVersion>
  12. <FileVersion>1.14.0.0</FileVersion>
  13. <Version>1.14.0-pre0001</Version>
  14. <InformationalVersion>1.14.0-pre.1+Branch.develop.Sha.e0b7464669ef87b96b57f2285200e02bcf85d0e7</InformationalVersion>
  15. </PropertyGroup>
  16. <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
  17. <DefineConstants>TRACE</DefineConstants>
  18. </PropertyGroup>
  19. <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
  20. <DefineConstants>TRACE;DEBUG_IDISPOSABLE</DefineConstants>
  21. </PropertyGroup>
  22. <ItemGroup>
  23. <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.0" />
  24. <PackageReference Include="ReportGenerator" Version="5.1.24" />
  25. <PackageReference Include="System.Collections" Version="4.3.0" />
  26. <PackageReference Include="xunit" Version="2.5.0" />
  27. <PackageReference Include="xunit.runner.visualstudio" Version="2.5.0">
  28. <PrivateAssets>all</PrivateAssets>
  29. <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
  30. </PackageReference>
  31. <PackageReference Include="coverlet.collector" Version="6.0.0">
  32. <PrivateAssets>all</PrivateAssets>
  33. <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
  34. </PackageReference>
  35. </ItemGroup>
  36. <ItemGroup>
  37. <ProjectReference Include="..\Terminal.Gui\Terminal.Gui.csproj" />
  38. <ProjectReference Include="..\UICatalog\UICatalog.csproj" />
  39. </ItemGroup>
  40. <ItemGroup>
  41. <None Update="xunit.runner.json">
  42. <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
  43. </None>
  44. </ItemGroup>
  45. <PropertyGroup Label="FineCodeCoverage">
  46. <Enabled>
  47. True
  48. </Enabled>
  49. <Exclude>
  50. [UICatalog]*
  51. </Exclude>
  52. <Include></Include>
  53. <ExcludeByFile>
  54. <!--**/Migrations/*
  55. **/Hacks/*.cs-->
  56. </ExcludeByFile>
  57. <ExcludeByAttribute>
  58. <!--MyCustomExcludeFromCodeCoverage-->
  59. </ExcludeByAttribute>
  60. <IncludeTestAssembly>
  61. False
  62. </IncludeTestAssembly>
  63. </PropertyGroup>
  64. </Project>