Commit 3e61e3e
authored
chore: align project configuration with NuGet library template best practices (#53)
Compared TrxLib against the upstream [NuGet library
template](https://github.com/BenjaminMichaelis/DotnetTemplates/tree/main/templates/Library/NuGet)
and applied the improvements that were missing.
## Changes
- **Transitive pinning** (`Directory.Packages.props`): Enables
`CentralPackageTransitivePinningEnabled`, which pins transitive
dependencies to the versions declared in CPM. This prevents supply-chain
surprises where a transitive upgrade quietly pulls in a vulnerable or
breaking version.
- **LangVersion 14** (`Directory.Build.props`): Updates from `13.0` to
`14` to use the latest C# language features and match current template
conventions.
- **Line endings: CRLF -> LF** (`.editorconfig`, `.gitattributes`):
Switches `end_of_line` from `crlf` to `lf` for cross-platform
consistency and cleaner Git diffs. Also enables `insert_final_newline`.
A `.gitattributes` file is added to enforce normalization at the repo
level.
- **PackageTags** (`Directory.Build.props`): Adds `trx test-results xml
parser` so the package is discoverable on NuGet.org by relevant search
terms.
## Not changed
TrxLib's existing metadata (Title, Authors, Description, License, URLs,
README) was already in excellent shape -- no changes needed there.
`IsTestProject=true` was already set in the test csproj.1 parent ec598cd commit 3e61e3e
4 files changed
Lines changed: 40 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
| 29 | + | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
0 commit comments