Skip to content

Address Syncfusion Blazor Toolkit scaffolder review: classification, hosting facts, summary, MSBuild, baselines - #28

Merged
Indhumathy-Loganathan merged 4 commits into
mainfrom
bold-create/ae1545b0-s-practical-way-address-four-review
Oct 14, 2026
Merged

Indhumathy-Loganathan merged 4 commits into
mainfrom
bold-create/ae1545b0-s-practical-way-address-four-review

Conversation

@Indhumathy-Loganathan

@Indhumathy-Loganathan Indhumathy-Loganathan commented Oct 14, 2026 •

Copy link
Copy Markdown
Owner

Summary

Addresses review feedback on the Syncfusion Blazor Toolkit scaffolder: naming cleanup, safer Program.cs edits, evaluated MSBuild project classification, accurate hosting/render-mode reporting, per-project summary outcomes, a single MSBuild registration owner, fixed unit fixtures, and real baseline tests for net10/net11.

Changes

Naming and dead code

  • Renamed example strings to SyncfusionBlazorToolkitExample / SyncfusionBlazorToolkitExampleDescription to match the AreaExample and Identity/Entra pattern.
  • Removed unused ExtendedDescription, history-style comments (old JSON recipe narration, "Comment 9/12" markers), and dead BuildResolvedCodeModifierConfigJson.

Escaped identifiers

  • Builder names are written using the identifier’s source spelling (preserves @), while comparisons still use the unescaped name.
  • Prevents var @class = ... from becoming class.Services....
  • Added a test covering @class.

Project validation

  • Single classifier: BlazorProjectClassifier, driven by evaluated MSBuild properties.
  • Rejects Web API projects using Microsoft.NET.Sdk.Web; ignores SDK names in comments; does not treat UseMaui=false as Hybrid; respects imported props; fails explicitly on evaluation failure.
  • Classification is stored on settings; the Program.cs step consumes it instead of re-parsing.
  • Both regex-based classifiers removed; tests cover each case.

Render-mode / hosting guidance

  • App kind, supported hosting modes, and global render mode are separate facts.
  • Hosting is inferred from the entry point’s actual registrations (services and endpoint calls required).
  • “No global render mode” is reported as a fact, not as “no interactivity.”
  • Standalone WebAssembly no longer receives SSR advice; a client project reference no longer implies Auto.
  • Guidance remains advisory (no hosting completion), to stay within minimal Toolkit setup scope. Hosting completion via existing Blazor recipes can be added later if desired.

Summary no-op reporting

  • Summary reads per-project recorded outcomes (package version before/after, registration inserted, imports inserted) for server and client.
  • Package upgrade, client changes, or inserted imports are no longer reported as a no-op; ServicesInserted is respected.
  • Tests: upgrade, new reference, changed client, unchanged client, true no-op.

MSBuild initialization

  • Removed added RegisterDefaults() calls from Program.cs and CodeService (aligned with base branch) and stale comments.
  • Validate step uses existing MsBuildInitializer before MSBuild (same pattern as other validate steps via ClassAnalyzers.GetProjectInfo) — single owner of SDK selection policy.

Failing unit tests

  • Reproduced (95 passed / 7 failed) and fixed without relaxing assertions.
  • Four fixtures lacked a Build() call (safe insertion correctly refused); they now use real hosts.
  • One test’s premise was stale (entry point in Hosting.cs is found and edited; Program.cs is never created) — replaced with assertions for that behavior.
  • Two needed a TargetFramework and a Razor component.
  • All 144 Syncfusion unit tests pass.

Baseline tests

  • Uses ScaffolderBaselineRunner with checked-in expected apps under baselines/BlazorToolkit for net10.0 and net11.0 (shared Inputs/*/BlazorWebApp as input).
  • Runner builds the expected app, scaffolds a copy of the input, builds it, and compares every file; confirmed failure when a baseline line is changed.
  • Configuration variations remain in integration tests.
  • Optional nugetConfig support because Syncfusion.Blazor.Toolkit is on nuget.org (not in the default repo feeds).
  • Also fixed BOM loss on write where applicable.

Test plan

  • All 144 Syncfusion unit tests pass
  • Baseline runner: net10.0 and net11.0 Blazor Web App
  • Baseline fails when an expected file line is altered
  • Escaped builder identifier (@class) coverage
  • Classifier cases (Web API reject, comment SDK ignored, Maui false, imported props, evaluation failure)
  • Summary outcomes: upgrade / new ref / client change / true no-op

Bold Create Agent and others added 4 commits October 14, 2026 11:00
…erve escaped builder identifiers, repair failing fixtures

Co-authored-by: Indhumathy-Loganathan <[email protected]>
…eal registrations, track real changes per project, single MSBuild registration owner

Co-authored-by: Indhumathy-Loganathan <[email protected]>
…ve dead recipe code and stale comments

Co-authored-by: Indhumathy-Loganathan <[email protected]>
…lding/dotnet-scaffold/dotnet-scaffold.csproj

Co-authored-by: Indhumathy-Loganathan <[email protected]>
@Indhumathy-Loganathan Indhumathy-Loganathan changed the title Bold create/ae1545b0 s practical way address four review Address Syncfusion Blazor Toolkit scaffolder review: classification, hosting facts, summary, MSBuild, baselines Oct 14, 2026
@Indhumathy-Loganathan
Indhumathy-Loganathan merged commit 15a66d2 into main Oct 14, 2026
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