Skip to content

Fix/templates pack symbols and fluent validation filter - #21

Merged
Duon0402 merged 2 commits into
masterfrom
fix/templates-pack-symbols-and-fluent-validation-filter
Aug 18, 2026
Merged

Fix/templates pack symbols and fluent validation filter#21
Duon0402 merged 2 commits into
masterfrom
fix/templates-pack-symbols-and-fluent-validation-filter

Conversation

@Duon0402

Copy link
Copy Markdown
Owner

No description provided.

duongdt added 2 commits August 18, 2026 10:28
Directory.Build.props' global IncludeSymbols=true/SymbolPackageFormat=snupkg
tried to produce a .snupkg for DuonDevKit.Templates too, but it has no
compiled output (IncludeBuildOutput=false, content-only package) — an empty
symbols package fails dotnet pack with NU5017 even though the main .nupkg
packs fine, silently blocking the entire publish job (confirmed: this is
why tag v0.12.0's publish run failed at the Pack DuonDevKit.Templates step,
before ever reaching NuGet push or GitHub Release). Overrides IncludeSymbols
back to false for this project only. Reproduced and verified fixed using the
exact 'dotnet build --no-restore && dotnet pack --no-build' sequence
publish.yml runs.
…erpart to ValidationFilter<T>

Resolves an IValidator<T> from DI and produces the exact same 400
field-level ValidationProblem shape as the DataAnnotations filter, so both
validation styles are interchangeable at the Minimal API boundary (Option B
from the earlier validation-shape discussion).

Trade-off accepted deliberately: DuonDevKit.AspNetCore now references
DuonDevKit.Validation (and transitively FluentValidation) unconditionally,
so every AspNetCore consumer gets that dependency even when only using
DataAnnotations — confirmed via a local NuGet feed that even the template's
default (no --validation) scaffold now carries FluentValidation transitively;
it still builds clean, just with a heavier dependency footprint.

Bumps DuonDevKit.AspNetCore 0.4.1 -> 0.5.0 (minor: additive API + dependency
footprint change) and updates the template's pinned reference to match.
@Duon0402
Duon0402 merged commit de15fb4 into master Aug 18, 2026
1 check passed
@Duon0402
Duon0402 deleted the fix/templates-pack-symbols-and-fluent-validation-filter branch August 18, 2026 03:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant