UnitTests.csproj 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <Project Sdk="Microsoft.NET.Sdk">
  2. <PropertyGroup>
  3. <!-- Version numbers are automatically updated by gitversion when a release is released -->
  4. <!-- In the source tree the version will always be 2.0 for all projects. -->
  5. <!-- Do not modify these. -->
  6. <AssemblyVersion>2.0</AssemblyVersion>
  7. <FileVersion>2.0</FileVersion>
  8. <Version>2.0</Version>
  9. <InformationalVersion>2.0</InformationalVersion>
  10. </PropertyGroup>
  11. <PropertyGroup>
  12. <IsPackable>false</IsPackable>
  13. <UseDataCollector />
  14. <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
  15. <DefineTrace>true</DefineTrace>
  16. <DebugType>portable</DebugType>
  17. <DefineConstants>$(DefineConstants);JETBRAINS_ANNOTATIONS;CONTRACTS_FULL</DefineConstants>
  18. <ImplicitUsings>enable</ImplicitUsings>
  19. <NoLogo>true</NoLogo>
  20. <SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
  21. </PropertyGroup>
  22. <PropertyGroup Condition="'$(Configuration)'=='Debug'">
  23. <DefineDebug>true</DefineDebug>
  24. <DefineConstants>$(DefineConstants);DEBUG_IDISPOSABLE</DefineConstants>
  25. </PropertyGroup>
  26. <PropertyGroup Condition="'$(Configuration)'=='Release'">
  27. <Optimize>true</Optimize>
  28. </PropertyGroup>
  29. <ItemGroup>
  30. <PackageReference Include="JetBrains.Annotations" PrivateAssets="all" />
  31. <PackageReference Include="Microsoft.NET.Test.Sdk" />
  32. <PackageReference Include="Moq" />
  33. <PackageReference Include="ReportGenerator" />
  34. <PackageReference Include="TestableIO.System.IO.Abstractions.TestingHelpers" />
  35. <PackageReference Include="xunit" />
  36. <PackageReference Include="Xunit.Combinatorial" />
  37. <PackageReference Include="xunit.runner.visualstudio">
  38. <PrivateAssets>all</PrivateAssets>
  39. <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
  40. </PackageReference>
  41. <PackageReference Include="coverlet.collector">
  42. <PrivateAssets>all</PrivateAssets>
  43. <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
  44. </PackageReference>
  45. </ItemGroup>
  46. <ItemGroup>
  47. <ProjectReference Include="..\..\Terminal.Gui\Terminal.Gui.csproj" />
  48. <ProjectReference Include="..\..\TerminalGuiFluentTesting\TerminalGuiFluentTesting.csproj" />
  49. <ProjectReference Include="..\..\UICatalog\UICatalog.csproj" />
  50. </ItemGroup>
  51. <ItemGroup>
  52. <None Update="xunit.runner.json">
  53. <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
  54. </None>
  55. </ItemGroup>
  56. <ItemGroup>
  57. <Using Include="System.Drawing" />
  58. <Using Include="Terminal.Gui" />
  59. <Using Include="Xunit" />
  60. </ItemGroup>
  61. <ItemGroup>
  62. <Folder Include="Input\Keyboard\" />
  63. <Folder Include="Input\Mouse\" />
  64. </ItemGroup>
  65. <PropertyGroup Label="FineCodeCoverage">
  66. <Enabled>
  67. False
  68. </Enabled>
  69. <Exclude>
  70. [UICatalog]*
  71. </Exclude>
  72. <Include></Include>
  73. <ExcludeByFile>
  74. <!--**/Migrations/*
  75. **/Hacks/*.cs-->
  76. </ExcludeByFile>
  77. <ExcludeByAttribute>
  78. <!--MyCustomExcludeFromCodeCoverage-->
  79. </ExcludeByAttribute>
  80. <IncludeTestAssembly>
  81. False
  82. </IncludeTestAssembly>
  83. </PropertyGroup>
  84. </Project>