UnitTests.csproj 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <Project Sdk="Microsoft.NET.Sdk">
  2. <PropertyGroup>
  3. <TargetFramework>net8.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.9.0" />
  25. <PackageReference Include="ReportGenerator" Version="5.2.1" />
  26. <PackageReference Include="System.Collections" Version="4.3.0" />
  27. <PackageReference Include="TestableIO.System.IO.Abstractions.TestingHelpers" Version="20.0.15" />
  28. <PackageReference Include="xunit" Version="2.7.0" />
  29. <PackageReference Include="Xunit.Combinatorial" Version="1.6.24" />
  30. <PackageReference Include="xunit.runner.visualstudio" Version="2.5.7">
  31. <PrivateAssets>all</PrivateAssets>
  32. <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
  33. </PackageReference>
  34. <PackageReference Include="coverlet.collector" Version="6.0.1">
  35. <PrivateAssets>all</PrivateAssets>
  36. <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
  37. </PackageReference>
  38. </ItemGroup>
  39. <ItemGroup>
  40. <ProjectReference Include="..\Terminal.Gui\Terminal.Gui.csproj" />
  41. <ProjectReference Include="..\UICatalog\UICatalog.csproj" />
  42. </ItemGroup>
  43. <ItemGroup>
  44. <None Update="xunit.runner.json">
  45. <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
  46. </None>
  47. </ItemGroup>
  48. <ItemGroup>
  49. <Using Include="System.Drawing.Rectangle" Alias="Rectangle" />
  50. <Using Include="Terminal.Gui" />
  51. <Using Include="Xunit" />
  52. </ItemGroup>
  53. <PropertyGroup Label="FineCodeCoverage">
  54. <Enabled>
  55. False
  56. </Enabled>
  57. <Exclude>
  58. [UICatalog]*
  59. </Exclude>
  60. <Include></Include>
  61. <ExcludeByFile>
  62. <!--**/Migrations/*
  63. **/Hacks/*.cs-->
  64. </ExcludeByFile>
  65. <ExcludeByAttribute>
  66. <!--MyCustomExcludeFromCodeCoverage-->
  67. </ExcludeByAttribute>
  68. <IncludeTestAssembly>
  69. False
  70. </IncludeTestAssembly>
  71. <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
  72. <ImplicitUsings>enable</ImplicitUsings>
  73. </PropertyGroup>
  74. </Project>