-
-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
42 lines (35 loc) · 2.24 KB
/
Copy pathDirectory.Build.props
File metadata and controls
42 lines (35 loc) · 2.24 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
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<!-- Run the latest analyzer rules in "recommended" mode so GlobalSuppressions corresponds to rules that actually run (#219). -->
<AnalysisLevel>latest-recommended</AnalysisLevel>
<!-- Suppress NuGet package pruning advisories. Some legacy transitive deps require
explicit package references for runtime resolution and cannot be pruned. -->
<NoWarn>$(NoWarn);NU1510</NoWarn>
<!-- The strict-mode burn-down is COMPLETE: nullable reference types (CS86xx), the house-style
analyzers (MCEC0001 one-type-per-file, MCEC0002 no-nested-types), and collection-expression
style (IDE0028/IDE0300/IDE0305) are all driven to zero and enforced as ERRORS via
TreatWarningsAsErrors. Only the two WinForms platform advisories remain as tracked
(non-error) warnings: WFO1000 (source-generator) and WFDEV004 (Form.Closing obsoletion in
the designer file). These match WinPrint's posture and are not part of the burn-down. -->
<WarningsNotAsErrors>$(WarningsNotAsErrors);WFO1000;WFDEV004</WarningsNotAsErrors>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="GitVersion.MsBuild" Version="6.8.1" PrivateAssets="all" />
</ItemGroup>
<!-- House-style analyzers (one type per file, no nested types). Excluded from the
analyzer project itself to avoid a circular reference. -->
<ItemGroup Condition="'$(MSBuildProjectName)' != 'MCEControl.Analyzers'">
<ProjectReference Include="$(MSBuildThisFileDirectory)tools\MCEControl.Analyzers\MCEControl.Analyzers.csproj">
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
<OutputItemType>Analyzer</OutputItemType>
<SetTargetFramework>TargetFramework=netstandard2.0</SetTargetFramework>
<GlobalPropertiesToRemove>RuntimeIdentifier;RuntimeIdentifiers;SelfContained;PublishSelfContained;PublishSingleFile;PublishAot;IsAotCompatible;Platform;PlatformTarget</GlobalPropertiesToRemove>
<PrivateAssets>all</PrivateAssets>
</ProjectReference>
</ItemGroup>
</Project>