Repository navigation
Expand file tree
/
Copy pathDirectory.Packages.props
More file actions
157 lines (157 loc) · 10.7 KB
/
Copy pathDirectory.Packages.props
File metadata and controls
157 lines (157 loc) · 10.7 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<Project>
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<!-- Pin transitive packages from this file too: a PackageVersion item for a package that only a dependency pulls in
raises it to that version. Use it to fix a vulnerable transitive package that NuGetAudit reports, with a comment
that names the advisory. -->
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
<!-- A project cannot override a central version with a VersionOverride attribute. Every version is in this file. -->
<CentralPackageVersionOverrideEnabled>false</CentralPackageVersionOverrideEnabled>
</PropertyGroup>
<!-- The analyzer packages and Source Link below are GlobalPackageReference items, not PackageVersion items.
A global reference applies to every project in the repository (src, tests, samples, benchmarks and the
netstandard2.0 generator) from this one file, so a new project gets the same analyzers without a
PackageReference in Directory.Build.props. PrivateAssets="all" keeps them out of the packages we ship.
NSubstitute.Analyzers.CSharp stays a PackageReference in the test projects that use NSubstitute. -->
<!-- Roslynator. (Roslynator.CodeFixes/Roslynator.Refactorings are IDE-extension-only packages,
not referenced by any PackageReference here, so they are deliberately not pinned.) -->
<ItemGroup>
<GlobalPackageReference Include="Roslynator.Analyzers" Version="5.0.1" PrivateAssets="all" />
<GlobalPackageReference Include="Roslynator.CodeAnalysis.Analyzers" Version="5.0.1" PrivateAssets="all" />
<GlobalPackageReference Include="Roslynator.Formatting.Analyzers" Version="5.0.1" PrivateAssets="all" />
</ItemGroup>
<!-- StyleCop -->
<ItemGroup>
<!-- 1.2.0-beta is required for record support: 1.1.x SA1313 flags PascalCase positional-record
parameters, which are correct (they become public properties). -->
<GlobalPackageReference Include="StyleCop.Analyzers" Version="1.3.151-beta" PrivateAssets="all" />
</ItemGroup>
<!-- SonarAnalyzer -->
<ItemGroup>
<GlobalPackageReference Include="SonarAnalyzer.CSharp" Version="10.35.0.4138" PrivateAssets="all" />
</ItemGroup>
<!-- Async/await usage analyzers -->
<ItemGroup>
<GlobalPackageReference Include="AsyncFixer" Version="2.1.0" PrivateAssets="all" />
<GlobalPackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" Version="18.12.1" PrivateAssets="all" />
</ItemGroup>
<!-- IDisposable usage analyzer -->
<ItemGroup>
<GlobalPackageReference Include="IDisposableAnalyzers" Version="4.0.8" PrivateAssets="all" />
</ItemGroup>
<!-- Microsoft extensions (ship with .NET 11). Abstractions packages are what TruthWeaver
itself depends on (ADR-0004); the non-Abstractions packages are test-only, wiring a real DI
container/logger in the DI-registration-extension tests (ticket 12). -->
<ItemGroup>
<PackageVersion Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="11.0.0-rc.1.26425.128" />
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="11.0.0-rc.1.26425.128" />
<PackageVersion Include="Microsoft.Extensions.DependencyInjection" Version="11.0.0-rc.1.26425.128" />
<PackageVersion Include="Microsoft.Extensions.Logging" Version="11.0.0-rc.1.26425.128" />
</ItemGroup>
<!-- Microsoft.Extensions.Configuration - TruthWeaver.Extensions.Configuration's only package dependency: IConfiguration and its
change token feed the rule store (ADR-0016). It stays on the .NET 11 RC line with the other Microsoft.Extensions.* packages
(see the Dependabot ignore entry). The core package takes no dependency on it. -->
<ItemGroup>
<PackageVersion Include="Microsoft.Extensions.Configuration" Version="11.0.0-rc.1.26425.128" />
</ItemGroup>
<!-- Microsoft.AspNetCore.TestHost - test-project-only (TruthWeaver.AspNetCore.Tests and the AspNetCore sample tests): TestServer
runs a host in memory, so the authorization tests send real requests without a network port. TruthWeaver.AspNetCore itself
takes only the Microsoft.AspNetCore.App framework reference. -->
<ItemGroup>
<PackageVersion Include="Microsoft.AspNetCore.TestHost" Version="11.0.0-rc.3.26522.148" />
</ItemGroup>
<!-- Meziantou.Framework.JsonPath - TruthWeaver.DataSources.Json's JSONPath (RFC 9535) engine (ADR-0006). MIT, no dependencies,
a net11.0 build, evaluates System.Text.Json JsonNode directly and is actively maintained. Chosen over JsonPath.Net, whose
3.x binaries ship under the Open Source Maintenance Fee EULA. -->
<ItemGroup>
<PackageVersion Include="Meziantou.Framework.JsonPath" Version="3.0.8" />
</ItemGroup>
<!-- YamlDotNet - TruthWeaver.Yaml's sole dependency beyond TruthWeaver itself. -->
<ItemGroup>
<PackageVersion Include="YamlDotNet" Version="18.1.0" />
</ItemGroup>
<!-- System.CommandLine - the truthweaver command line (TruthWeaver.Tool) only: option parsing, help and shell completion.
2.0.x is the stable line (MIT, a net8.0 build with no dependencies, marked IsTrimmable and free of
RequiresUnreferencedCode/RequiresDynamicCode). No other project may reference it; an architecture test checks the
tool core. -->
<ItemGroup>
<PackageVersion Include="System.CommandLine" Version="2.0.14" />
</ItemGroup>
<!-- Terminal.Gui - the terminal UI (TruthWeaver.Tool.Tui) only: windows, the text editor, dialogs and key bindings.
2.5.0 is the newest stable release (MIT, a net10.0 build that marks itself IsTrimmable and IsAotCompatible); the
owner approved it for the terminal UI project only (2026-10-17). Its own packages (Markdig, TextMateSharp,
ColorHelper, Wcwidth, System.IO.Abstractions, Microsoft.Extensions.Configuration/Options, JetBrains.Annotations)
come in transitively and reach no other project. docs/tui.md records the check. An architecture test keeps the tool
core and the command line free of it. -->
<ItemGroup>
<PackageVersion Include="Terminal.Gui" Version="2.5.0" />
</ItemGroup>
<!-- Terminal.Gui.Editor - the text editor view of the terminal UI (TruthWeaver.Tool.Tui) only. Terminal.Gui 2.5 marks its
TextView obsolete in favor of this package. 2.5.7 is the newest stable release (MIT, net10.0; it depends on
Terminal.Gui 2.4.17 or later and Microsoft.Extensions.Configuration.Abstractions). The owner approved it for the
terminal UI project only (2026-10-17). An architecture test keeps every other project free of it. -->
<ItemGroup>
<PackageVersion Include="Terminal.Gui.Editor" Version="2.5.7" />
</ItemGroup>
<!-- Roslyn - TruthWeaver.Generators builds against these, and its test project drives the generator with them.
4.14.0 is the oldest compiler API with AddEmbeddedAttributeDefinition (the generated marker attribute stays
invisible outside each consuming compilation). A consumer needs the .NET 9.0.300 SDK or later to load it. -->
<ItemGroup>
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp" Version="5.9.0" />
<PackageVersion Include="Microsoft.CodeAnalysis.Analyzers" Version="5.9.0" />
</ItemGroup>
<!-- xUnit v3 + MTP test packages -->
<ItemGroup>
<PackageVersion Include="xunit.v3" Version="4.0.2" />
<PackageVersion Include="xunit.runner.visualstudio" Version="4.0.1" />
<PackageVersion Include="Microsoft.Testing.Platform" Version="2.5.1" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.11.0" />
<!-- coverlet.MTP, not coverlet.collector (a VSTest data collector, which the
UseMicrosoftTestingPlatformRunner test host below cannot load), is the native
Microsoft.Testing.Platform coverage extension; run via the "coverlet" CLI flag
documented at https://github.com/coverlet-coverage/coverlet. -->
<PackageVersion Include="coverlet.MTP" Version="10.1.0" />
</ItemGroup>
<!-- NSubstitute -->
<ItemGroup>
<PackageVersion Include="NSubstitute" Version="6.2.0" />
<PackageVersion Include="NSubstitute.Analyzers.CSharp" Version="1.0.17" />
</ItemGroup>
<!-- JsonSchema.Net - test-project-only, to validate rule-tree.schema.json against the compiler's own
JSON fixtures (ticket: JSON Schema for the rule tree). Not referenced by any shipping project;
the schema itself is packaged as a plain content file, not consumed by production code. -->
<ItemGroup>
<PackageVersion Include="JsonSchema.Net" Version="9.6.0" />
</ItemGroup>
<!-- CsCheck - test-project-only, property-based/generative testing for the DSL printer/parser
round-trip (ticket: DSL round-trip property testing). Chosen over FsCheck: pure C# (no F#
runtime dependency to pull into a C#-only repo), PCG-based generation and shrinking that is
fast and fully automatic (no hand-written Arbitrary/shrink instances), and every failure
reports a replayable seed. Not referenced by any shipping project. -->
<ItemGroup>
<PackageVersion Include="CsCheck" Version="5.0.0" />
</ItemGroup>
<!-- MinVer derives every package version from the Git tags. It is a build-only reference, and only for projects that
pack, so test, sample and benchmark projects carry no MinVer version logic. -->
<ItemGroup>
<GlobalPackageReference Include="MinVer" Version="8.0.0" PrivateAssets="all" Condition="'$(IsPackable)' != 'false'" />
</ItemGroup>
<!-- Source Link comes from the .NET SDK, which bundles Microsoft.SourceLink.GitHub, so no package reference is needed.
Do not add the Microsoft.SourceLink.GitHub package as a GlobalPackageReference: it sets SuppressImplicitGitSourceLink,
which switches off the SDK Source Link. In this repository no Source Link target then ran, so the packed
assemblies had no sourcelink.json and the symbol packages had no source link (found by the check in docs/releasing.md). -->
<!-- NetArchTest - architecture-test-project-only, asserting the ADR-0004 package-boundary rules
(e.g. TruthWeaver.Abstractions has zero dependencies on the other TruthWeaver.* assemblies,
TruthWeaver.Predicates/Testing depend on Abstractions alone) as a build-time check rather than
something only a code reviewer notices. Not referenced by any shipping project. -->
<ItemGroup>
<PackageVersion Include="NetArchTest.Rules" Version="1.3.2" />
</ItemGroup>
<!-- BenchmarkDotNet - benchmarks-project-only (ticket: BenchmarkDotNet suite for compile and eval
performance). Never referenced by src/ or shipped in any package; the benchmarks project is a
throwaway console app that measures RuleCompiler/CompiledRule performance from outside the
library. -->
<ItemGroup>
<PackageVersion Include="BenchmarkDotNet" Version="0.15.8" />
</ItemGroup>
</Project>