-
Notifications
You must be signed in to change notification settings - Fork 173
/
Directory.Build.props
95 lines (87 loc) · 3.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
<Project>
<PropertyGroup>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<Authors>Microsoft Health Team</Authors>
<Company>Microsoft Corporation</Company>
<Copyright>Copyright © Microsoft Corporation. All rights reserved.</Copyright>
<Deterministic>true</Deterministic>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<HighEntropyVA>true</HighEntropyVA>
<LangVersion>Latest</LangVersion>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Product>Microsoft Health</Product>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<TrimMode>partial</TrimMode>
<WarningsAsErrors />
</PropertyGroup>
<!-- Currently the latest version is .NET 8 -->
<PropertyGroup>
<LatestVersion>net8.0</LatestVersion>
<LibraryFrameworks>net8.0;net6.0</LibraryFrameworks>
</PropertyGroup>
<!-- SDK Packages -->
<Choose>
<When Condition="'$(TargetFramework)' == 'net6.0'">
<PropertyGroup>
<DependencyInjectionVersion>6.0.1</DependencyInjectionVersion>
<MediatRVersion>12.1.1</MediatRVersion>
<OTelVersion>1.6.0</OTelVersion>
<SdkPackageVersion>6.0.0</SdkPackageVersion>
<WebUtilitiesVersion>2.2.0</WebUtilitiesVersion>
</PropertyGroup>
</When>
<When Condition="'$(TargetFramework)' == 'netstandard2.0'">
<PropertyGroup>
<DependencyInjectionVersion>8.0.0</DependencyInjectionVersion>
<MediatRVersion>12.2.0</MediatRVersion>
<OTelVersion>1.7.0</OTelVersion>
<SdkPackageVersion>8.0.0</SdkPackageVersion>
<WebUtilitiesVersion>2.2.0</WebUtilitiesVersion>
</PropertyGroup>
</When>
<Otherwise>
<PropertyGroup>
<DependencyInjectionVersion>8.0.0</DependencyInjectionVersion>
<MediatRVersion>12.2.0</MediatRVersion>
<OTelVersion>1.7.0</OTelVersion>
<SdkPackageVersion>8.0.0</SdkPackageVersion>
<WebUtilitiesVersion>8.0.0</WebUtilitiesVersion>
</PropertyGroup>
</Otherwise>
</Choose>
<!--
The fo-dicom.Codecs package relies on native assemblies for
Linux x64, OSX, and Windows x64. Given that the core dicom
project takes a dependency on these codecs, every project
should also be compiled for x64, as other platforms like x86
would not be able to load these native assemblies.
-->
<PropertyGroup>
<Platforms>x64</Platforms>
</PropertyGroup>
<!-- Include the following source files for .NET Standard 2.0 projects -->
<ItemGroup>
<Compile Include="$(MSBuildThisFileDirectory)\lang\*" Visible="false" />
</ItemGroup>
<Choose>
<When Condition="$(MSBuildProjectName.Contains('Test'))">
<PropertyGroup>
<IsPackable>false</IsPackable>
<NoWarn>$(NoWarn);CS1591</NoWarn>
</PropertyGroup>
</When>
<Otherwise>
<PropertyGroup>
<AnalysisLevel>latest-All</AnalysisLevel>
<IsPackable>true</IsPackable>
</PropertyGroup>
</Otherwise>
</Choose>
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All" />
</ItemGroup>
</Project>