forked from kadiwa4/LiveSplit.AutoSplitIntegration
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
41 lines (37 loc) · 1.79 KB
/
Copy pathDirectory.Build.props
File metadata and controls
41 lines (37 loc) · 1.79 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
<Project>
<!--
The source skeleton for this configuration can be found at
https://github.com/BesLogic/shared-configs/blob/main/Directory.Build.props
Modifications to this file that are not project-specific should also be done upstream.
-->
<PropertyGroup>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<!--
Create lock files. Allows faster restores and reproducibility
without having to pin to exact versions in csproj PackageReference.
-->
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
<!-- Ensure we don't accidentally update or bypass the lock files (missing `locked-mode`) -->
<!-- lock files can still be regenerated with: dotnet restore -p:RestoreLockedMode=false -->
<RestoreLockedMode>true</RestoreLockedMode>
<!-- NuGet Security Audit https://learn.microsoft.com/en-us/nuget/concepts/auditing-packages -->
<NuGetAudit>true</NuGetAudit>
<NuGetAuditLevel>moderate</NuGetAuditLevel>
<!--
Only fail on high + critical: https://learn.microsoft.com/en-us/nuget/concepts/auditing-packages#warning-codes
Alternatively this can be made to only fail on CI:
https://learn.microsoft.com/en-us/nuget/concepts/auditing-packages#running-nuget-audit-in-ci
-->
<WarningsAsErrors>$(WarningsAsErrors);NU1903;NU1904</WarningsAsErrors>
<!-- Will be default in .NET 10 -->
<NuGetAuditMode>all</NuGetAuditMode>
</PropertyGroup>
<!-- Properties specific to this project below -->
<PropertyGroup>
<!-- No lock file: the only NuGet package is a version-pinned build-only reference, so it buys nothing. -->
<RestorePackagesWithLockFile>false</RestorePackagesWithLockFile>
<TargetFramework>net481</TargetFramework>
<UseWindowsForms>true</UseWindowsForms>
</PropertyGroup>
</Project>