forked from microsoft/fhir-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDirectory.Build.props
69 lines (64 loc) · 2.9 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
<Project>
<!-- Nuget related properties.-->
<PropertyGroup>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Product>Microsoft FHIR Server for Azure</Product>
<RepositoryUrl>https://github.com/microsoft/fhir-server/</RepositoryUrl>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningsAsErrors />
<!-- allow pre-release dependencies -->
<NoWarn>$(NoWarn);NU5104</NoWarn>
<DebugType>Portable</DebugType>
<LangVersion>9.0</LangVersion>
<HighEntropyVA>true</HighEntropyVA>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<Authors>Microsoft Health Team</Authors>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<Company>Microsoft Corporation</Company>
<Copyright>Copyright © Microsoft Corporation. All rights reserved.</Copyright>
<Deterministic>true</Deterministic>
<!--This will target the latest patch release of the runtime released with the current SDK. -->
<TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>
</PropertyGroup>
<!-- Shared dependencies versions.-->
<PropertyGroup>
<RuntimePackageVersion>5.0.0</RuntimePackageVersion>
<AspNetPackageVersion>5.0.9</AspNetPackageVersion>
<HealthcareSharedPackageVersion>3.2.10</HealthcareSharedPackageVersion>
<Hl7FhirVersion>3.5.0</Hl7FhirVersion>
</PropertyGroup>
<Choose>
<When Condition="$(MSBuildProjectName.Contains('Test'))">
<PropertyGroup>
<IsPackable>false</IsPackable>
<CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)\CustomAnalysisRules.Test.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
</When>
<Otherwise>
<PropertyGroup>
<AnalysisMode>AllEnabledByDefault</AnalysisMode>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<IsPackable>true</IsPackable>
<CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)\CustomAnalysisRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
</Otherwise>
</Choose>
<ItemGroup>
<AdditionalFiles Include="$(MSBuildThisFileDirectory)\stylecop.json" Link="stylecop.json" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.321" PrivateAssets="All" />
</ItemGroup>
<Choose>
<When Condition="$(MSBuildProjectName)!='SmartLauncher' and $(MSBuildProjectName)!='FhirAnalyzer' AND !$(MSBuildProjectName.Contains('Test'))">
<ItemGroup>
<ProjectReference Include="..\..\tools\FhirAnalyzer\FhirAnalyzer.csproj">
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
<OutputItemType>Analyzer</OutputItemType>
</ProjectReference>
</ItemGroup>
</When>
</Choose>
</Project>