testlogger

Форк
0
/
Directory.Build.props 
67 строк · 2.8 Кб
1
<Project>
2
  <PropertyGroup>
3
    <SourceRoot Condition="$(SourceRoot) == ''">$(MSBuildThisFileDirectory)</SourceRoot>
4
    <SourcePrefix>4.0.0</SourcePrefix>
5
  </PropertyGroup>
6

7
  <PropertyGroup>
8
    <!-- Versioning is defined from the build script. Use a default dev build if it's not defined.
9
         Sets the AssemblyVersion, AssemblyFileVersion and AssemblyInformationalVersion -->
10
    <Version Condition="'$(Version)' == ''">$(SourcePrefix)-dev</Version>
11
    <PackageVersion Condition="'$(PackageVersion)' == ''">$(SourcePrefix)-dev</PackageVersion>
12
    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
13
    <GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
14
    <GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
15
    <GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
16

17
    <!--
18
    Make sure any documentation comments which are included in code get checked for syntax during the build, but do
19
    not report warnings for missing comments.
20

21
    CS1573: Parameter 'parameter' has no matching param tag in the XML comment for 'parameter' (but other parameters do)
22
    CS1591: Missing XML comment for publicly visible type or member 'Type_or_Member'
23
    -->
24
    <GenerateDocumentationFile>true</GenerateDocumentationFile>
25
    <NoWarn>$(NoWarn),1573,1591,1712</NoWarn>
26

27
    <!-- Show full paths for the warnings and errors -->
28
    <GenerateFullPaths>true</GenerateFullPaths>
29

30
    <!-- Use C# 9.0 -->
31
    <LangVersion>latest</LangVersion>
32
  </PropertyGroup>
33

34
  <PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
35
    <DefineConstants>$(DefineConstants);RELEASE</DefineConstants>
36
  </PropertyGroup>
37

38
  <PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
39
    <DefineConstants>$(DefineConstants);CODE_ANALYSIS</DefineConstants>
40
  </PropertyGroup>
41

42
  <!-- Common dependencies for all projects -->
43
  <ItemGroup>
44
    <AdditionalFiles Include="$(SourceRoot)scripts\stylecop.json">
45
      <Link>stylecop.json</Link>
46
    </AdditionalFiles>
47

48
    <PackageReference Include="Stylecop.Analyzers" Condition="$(StylecopEnabled) == '' or $(StylecopEnabled) != 'false'" />
49
  </ItemGroup>
50

51
  <!-- Code analysis settings -->
52
  <PropertyGroup>
53
    <CodeAnalysisRuleSet>$(SourceRoot)scripts/stylecop.ruleset</CodeAnalysisRuleSet>
54
    <CodeAnalysisRuleSet Condition="$(TestProject) == 'true'">$(SourceRoot)scripts/stylecop.test.ruleset</CodeAnalysisRuleSet>
55
  </PropertyGroup>
56

57
  <PropertyGroup>
58
    <!-- Test Assets use the minimum supported versions -->
59
    <NETTestSdkMinimumVersion>16.5.0</NETTestSdkMinimumVersion>
60
    <XunitVersion>2.3.1</XunitVersion>
61
    <XunitTestAdapterVersion>2.3.1</XunitTestAdapterVersion>
62
    <NUnitVersion>3.13.2</NUnitVersion>
63
    <NUnitTestAdapterVersion>4.0.0</NUnitTestAdapterVersion>
64
    <MSTestVersion>3.4.3</MSTestVersion>
65
  </PropertyGroup>
66
</Project>
67
<!-- vim: set ft=xml : -->
68

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.