UnitTests.csproj 2.3 KB

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