-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
118 lines (108 loc) · 5.22 KB
/
Directory.Build.props
File metadata and controls
118 lines (108 loc) · 5.22 KB
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
112
113
114
115
116
117
118
<Project>
<!-- Code analysis options -->
<PropertyGroup>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<CodeAnalysisRuleSet>$(MSBuildThisFileDirectory).stylecop\StyleCop.ruleset</CodeAnalysisRuleSet>
<RunSettingsFilePath>$(MSBuildThisFileDirectory).runsettings</RunSettingsFilePath>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<NoWarn>$(NoWarn);NU1601;NU1603;NU1801;NETSDK1138</NoWarn>
<!-- IDE0130 Namespace does not match folder structure -->
<NoWarn>$(NoWarn);IDE0130</NoWarn>
<!-- Rules not compatible with netstandard 2.0: -->
<!-- IDE0090 New expression can be simplified -->
<NoWarn>$(NoWarn);IDE0090</NoWarn>
<!-- Collection initialization can be simplified -->
<NoWarn>$(NoWarn);IDE0028;IDE0300;IDE0301;IDE0305</NoWarn>
<!-- IDE0290 Use primary constructor -->
<NoWarn>$(NoWarn);IDE0290</NoWarn>
<!-- IDE0083 Use pattern matching -->
<NoWarn>$(NoWarn);IDE0083</NoWarn>
<!-- IDE0074 Use compound assignment -->
<NoWarn>$(NoWarn);IDE0074</NoWarn>
<!-- IDE0057 Substring can be simplified -->
<NoWarn>$(NoWarn);IDE0057</NoWarn>
<!-- IDE0056 Indexing can be simplified -->
<NoWarn>$(NoWarn);IDE0056</NoWarn>
<!-- IDE0063 Using can be simplified -->
<NoWarn>$(NoWarn);IDE0063</NoWarn>
<!-- IDE0066 Use switch expression -->
<NoWarn>$(NoWarn);IDE0066</NoWarn>
<!-- CA1510 Use ArgumentNullException.ThrowIfNull -->
<NoWarn>$(NoWarn);CA1510</NoWarn>
<!-- RCS1187 Use constant instead of field -->
<NoWarn>$(NoWarn);RCS1187</NoWarn>
</PropertyGroup>
<!-- Restore options -->
<PropertyGroup>
<RestoreConfigFile>$(MSBuildThisFileDirectory)NuGet.Config</RestoreConfigFile>
<RestoreIgnoreFailedSources>true</RestoreIgnoreFailedSources>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
<RestoreLockedMode Condition="'$(ContinuousIntegrationBuild)' == 'true'">true</RestoreLockedMode>
<DisableImplicitNuGetFallbackFolder>true</DisableImplicitNuGetFallbackFolder>
</PropertyGroup>
<!-- Build management -->
<ItemGroup>
<SourceRoot Include="$(MSBuildProjectDirectory)/" />
</ItemGroup>
<PropertyGroup Condition="'$(Platform)'=='AnyCPU'">
<PlatformTarget>AnyCPU</PlatformTarget>
</PropertyGroup>
<PropertyGroup Condition="'$(IsTestProject)'!='true'">
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup>
<Deterministic>true</Deterministic>
<DeterministicSourcePaths>true</DeterministicSourcePaths>
<PathMap>$(MSBuildThisFileDirectory)=./</PathMap>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<DisableSystemTextJsonSourceGenerator>true</DisableSystemTextJsonSourceGenerator>
</PropertyGroup>
<!-- Additional info options -->
<PropertyGroup>
<AppDesignerFolder>Properties</AppDesignerFolder>
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
<NeutralLanguage>en</NeutralLanguage>
<NeutralResourcesLanguage>en</NeutralResourcesLanguage>
<Company>Ivan Starostin</Company>
<Authors>Ivan Starostin et al.</Authors>
<Copyright>© $([System.DateTime]::Now.Year) $(Company)</Copyright>
<AssemblyCopyright>$(Copyright)</AssemblyCopyright>
<IncludeSourceRevisionInInformationalVersion>true</IncludeSourceRevisionInInformationalVersion>
</PropertyGroup>
<!-- Target OS related flags -->
<PropertyGroup>
<IsWindows Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' == 'true'">true</IsWindows>
<IsLinux Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))' == 'true'">true</IsLinux>
</PropertyGroup>
<PropertyGroup Condition="'$(IsWindows)'=='true'">
<DefineConstants>Windows</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(IsLinux)'=='true'">
<DefineConstants>Linux</DefineConstants>
</PropertyGroup>
<!-- No packing for test projects -->
<PropertyGroup Condition="'$(IsTestProject)'=='true'">
<IsPackable>false</IsPackable>
<IsPublishable>false</IsPublishable>
</PropertyGroup>
<!-- Packing options -->
<PropertyGroup>
<ContentTargetFolders>content</ContentTargetFolders>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118">
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<AdditionalFiles Include="$(MSBuildThisFileDirectory).stylecop\stylecop.json" Visible="false" />
<PackageReference Include="Roslynator.Analyzers" Version="4.14.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<None Include="$(MSBuildProjectDirectory)\packages.lock.json" Visible="false" />
<!-- Newer version helps better resolving common dll dependencies -->
<PackageReference Include="Microsoft.NETCore.Platforms" Version="7.0.4" Condition="'$(IsTestProject)' != 'true'" />
</ItemGroup>
</Project>