UnitTests.csproj 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. <!-- In the source tree the version will always be 2.0 for all projects. -->
  11. <!-- Do not modify these. -->
  12. <AssemblyVersion>1.14.0.0</AssemblyVersion>
  13. <FileVersion>1.14.0.0</FileVersion>
  14. <Version>1.14.0-v1-develop-branc0113</Version>
  15. <InformationalVersion>1.14.0-v1-develop-branching-update.113+Branch.v1-develop-branching-update.Sha.a36b5c45a68b3d89f4a920cd6ad775ed40cdc51d</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.7.0" />
  25. <PackageReference Include="ReportGenerator" Version="5.1.24" />
  26. <PackageReference Include="System.Collections" Version="4.3.0" />
  27. <PackageReference Include="xunit" Version="2.5.0" />
  28. <PackageReference Include="xunit.runner.visualstudio" Version="2.5.0">
  29. <PrivateAssets>all</PrivateAssets>
  30. <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
  31. </PackageReference>
  32. <PackageReference Include="coverlet.collector" Version="6.0.0">
  33. <PrivateAssets>all</PrivateAssets>
  34. <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
  35. </PackageReference>
  36. </ItemGroup>
  37. <ItemGroup>
  38. <ProjectReference Include="..\Terminal.Gui\Terminal.Gui.csproj" />
  39. <ProjectReference Include="..\UICatalog\UICatalog.csproj" />
  40. </ItemGroup>
  41. <ItemGroup>
  42. <None Update="xunit.runner.json">
  43. <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
  44. </None>
  45. </ItemGroup>
  46. <PropertyGroup Label="FineCodeCoverage">
  47. <Enabled>
  48. True
  49. </Enabled>
  50. <Exclude>
  51. [UICatalog]*
  52. </Exclude>
  53. <Include></Include>
  54. <ExcludeByFile>
  55. <!--**/Migrations/*
  56. **/Hacks/*.cs-->
  57. </ExcludeByFile>
  58. <ExcludeByAttribute>
  59. <!--MyCustomExcludeFromCodeCoverage-->
  60. </ExcludeByAttribute>
  61. <IncludeTestAssembly>
  62. False
  63. </IncludeTestAssembly>
  64. </PropertyGroup>
  65. </Project>