UnitTests.csproj 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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="..\..\UICatalog\UICatalog.csproj" />
  49. </ItemGroup>
  50. <ItemGroup>
  51. <None Update="xunit.runner.json">
  52. <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
  53. </None>
  54. </ItemGroup>
  55. <ItemGroup>
  56. <Using Include="System.Drawing" />
  57. <Using Include="Terminal.Gui" />
  58. <Using Include="Xunit" />
  59. </ItemGroup>
  60. <ItemGroup>
  61. <Folder Include="Input\Keyboard\" />
  62. <Folder Include="Input\Mouse\" />
  63. </ItemGroup>
  64. <PropertyGroup Label="FineCodeCoverage">
  65. <Enabled>
  66. False
  67. </Enabled>
  68. <Exclude>
  69. [UICatalog]*
  70. </Exclude>
  71. <Include></Include>
  72. <ExcludeByFile>
  73. <!--**/Migrations/*
  74. **/Hacks/*.cs-->
  75. </ExcludeByFile>
  76. <ExcludeByAttribute>
  77. <!--MyCustomExcludeFromCodeCoverage-->
  78. </ExcludeByAttribute>
  79. <IncludeTestAssembly>
  80. False
  81. </IncludeTestAssembly>
  82. </PropertyGroup>
  83. </Project>