-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
29 lines (26 loc) · 1.14 KB
/
Copy pathDirectory.Build.props
File metadata and controls
29 lines (26 loc) · 1.14 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
<Project>
<PropertyGroup>
<!--
Run analyzers on every build (CI + local). AnalysisMode is left at the
SDK default ("Default") so only Microsoft's curated set of rules is on;
.editorconfig then promotes the entire Security category to error.
Setting AllEnabledByDefault here would resurrect ~1200 design/style
warnings that aren't actionable for this project and would drown out
the actual security signal.
-->
<RunAnalyzersDuringBuild>true</RunAnalyzersDuringBuild>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<AnalysisLevel>latest</AnalysisLevel>
</PropertyGroup>
<ItemGroup>
<!--
SecurityCodeScan: free OWASP-style Roslyn analyzer covering injection,
crypto misuse, weak randomness, XML/XPath/LDAP injection, etc.
PrivateAssets=all keeps it as a build-time analyzer only — nothing ships.
-->
<PackageReference Include="SecurityCodeScan.VS2019" Version="5.6.7">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project>