-
Notifications
You must be signed in to change notification settings - Fork 37
/
Directory.Build.props
111 lines (103 loc) · 4.39 KB
/
Directory.Build.props
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<Project>
<!-- Common Properties -->
<PropertyGroup>
<Authors>Microsoft Health Team</Authors>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<Company>Microsoft Corporation</Company>
<Copyright>Copyright © Microsoft Corporation. All rights reserved.</Copyright>
<Deterministic>true</Deterministic>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<HighEntropyVA>true</HighEntropyVA>
<IsPackable>true</IsPackable>
<LangVersion>latest</LangVersion>
<LatestVersion>net8.0</LatestVersion>
<LtsVersion>net8.0</LtsVersion>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PreviousVersion>net6.0</PreviousVersion>
<Product>Microsoft Health</Product>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<RootDirectory>$(MSBuildThisFileDirectory)</RootDirectory>
<RunSettingsFilePath>$(RootDirectory)CodeCoverage.runsettings</RunSettingsFilePath>
<StsVersion>net7.0</StsVersion>
<SupportedFrameworks>$(LtsVersion);$(StsVersion);$(PreviousVersion)</SupportedFrameworks>
<TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningsAsErrors />
</PropertyGroup>
<!-- SDK Packages -->
<Choose>
<When Condition="'$(TargetFramework)' == '$(PreviousVersion)'">
<PropertyGroup>
<LoggingVersion>6.0.0</LoggingVersion>
<MediatRVersion>12.1.1</MediatRVersion>
<SdkPackageVersion>6.0.0</SdkPackageVersion>
<SystemTextJsonVersion>$(SdkPackageVersion)</SystemTextJsonVersion>
</PropertyGroup>
</When>
<When Condition="'$(TargetFramework)' == '$(StsVersion)'">
<PropertyGroup>
<LoggingVersion>7.0.0</LoggingVersion>
<MediatRVersion>12.1.1</MediatRVersion>
<SdkPackageVersion>7.0.0</SdkPackageVersion>
<SystemTextJsonVersion>$(SdkPackageVersion)</SystemTextJsonVersion>
</PropertyGroup>
</When>
<Otherwise>
<PropertyGroup>
<LoggingVersion>8.0.0</LoggingVersion>
<!-- >= 12.2.0 MediatR started depending on 8.x Microsoft.Extension.* libraries -->
<MediatRVersion>12.2.0</MediatRVersion>
<SdkPackageVersion>8.0.0</SdkPackageVersion>
<SystemTextJsonVersion>8.0.5</SystemTextJsonVersion>
</PropertyGroup>
</Otherwise>
</Choose>
<!-- Dynamic Assembly Info -->
<ItemGroup>
<AssemblyAttribute Include="System.CLSCompliantAttribute ">
<_Parameter1>false</_Parameter1>
<_Parameter1_TypeName>System.Boolean</_Parameter1_TypeName>
</AssemblyAttribute>
<AssemblyAttribute Include="System.Resources.NeutralResourcesLanguage ">
<_Parameter1>en</_Parameter1>
<_Parameter1_TypeName>System.String</_Parameter1_TypeName>
</AssemblyAttribute>
</ItemGroup>
<!-- Support New Lanuage Features in .NET Standard 2.0 -->
<ItemGroup>
<Compile Include="$(RootDirectory)\lang\*" Visible="false" />
</ItemGroup>
<!-- .NET Analyzers -->
<PropertyGroup Condition="'$(MSBuildProjectName)' != 'Microsoft.Health.Extensions.BuildTimeCodeGenerator'">
<AnalysisLevel>latest-All</AnalysisLevel>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
</PropertyGroup>
<!-- Common Packages -->
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All" />
</ItemGroup>
<!-- Test Properties -->
<Choose>
<When Condition="$(MSBuildProjectName.Contains('Tests'))">
<PropertyGroup>
<IsPackable>false</IsPackable>
<!-- CA1707: Identifiers should not contain underscores -->
<!-- CA2007: Do not directly await a Task. xUnit1030 - Do not call ConfigureAwait in test method-->
<NoWarn>($NoWarn);CA1707,CA2007</NoWarn>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="coverlet.collector" PrivateAssets="All" />
</ItemGroup>
</When>
<Otherwise>
<ItemGroup>
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
<_Parameter1>$(MSBuildProjectName).UnitTests</_Parameter1>
<_Parameter1_TypeName>System.String</_Parameter1_TypeName>
</AssemblyAttribute>
</ItemGroup>
</Otherwise>
</Choose>
</Project>