Commit 928698f
committed
Enable deterministic builds for reproducible NuGet packages
Add deterministic build properties to Scrutor.csproj:
- Deterministic=true: Ensures compiler generates byte-for-byte identical
outputs for the same inputs
- ContinuousIntegrationBuild=true (when CI=true): Normalizes file paths
and timestamps in PDB files for reproducible builds
Add CI=true to GitHub Actions workflow to explicitly enable
ContinuousIntegrationBuild in CI environments.
These settings ensure that building the same source code multiple times
will produce identical NuGet packages, which is important for:
- Security (verifying package contents match source)
- Build reproducibility
- Package verification and attestation1 parent 5e63979 commit 928698f
2 files changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
| |||
0 commit comments