Skip to content

Scaffolding package issues were cleared. - #2

Merged
Indhumathy-Loganathan merged 1 commit into
mainfrom
toolkit-scaffolding
Sep 23, 2026
Merged

Indhumathy-Loganathan merged 1 commit into
mainfrom
toolkit-scaffolding

Conversation

@Indhumathy-Loganathan

Copy link
Copy Markdown
Owner

Summary

This PR adds scaffolding support for the Syncfusion Blazor Toolkit via a new Healthcare Tracker sample/scaffolder. It generates a ready-to-run Blazor application that demonstrates Toolkit components, along with the necessary package references, service registration, theme links, and code modifications.

The change also hardens the underlying code-modification pipeline so that document discovery and disk fallback work reliably when MSBuildWorkspace returns an empty or partial project (common with preview SDKs such as .NET 11).

Templates and code-modification configs are provided for .NET 8, 9, 10, and 11.

Key Changes

  • New Healthcare Tracker scaffolder

    • Templates (HealthcareTracker.tt, .cs, .Interfaces.cs) for net8.0 / net9.0 / net10.0 / net11.0
    • Code-modification configs (syncfusionHealthcareTrackerChanges.json) per TFM
    • Supporting types: HealthcareTrackerModel, HealthcareTrackerSettings, HealthcareTrackerHelper, ValidateHealthcareTrackerStep
    • Registration via HealthcareTrackerScaffolderBuilderExtensions and updates to AspNetCommandService / AspnetStrings / PackageConstants
  • Robustness improvements in the scaffolding engine

    • ProjectModifier: prefer workspace document, fall back to disk load; unified disk-replacement path for .razor / .html / .css
    • RoslynExtensions: improved document / additional-document matching (name + FilePath)
    • CodeService: treat empty MSBuild projects (no documents) as load failures and improve AdhocWorkspace fallback + persistence of added/changed documents
  • Package & command integration

    • Syncfusion Blazor Toolkit package references and related constants
    • Command strings and scaffolder discovery wiring for the new Healthcare Tracker flow

Output

image

Validation

  • Build the Scaffolding solution successfully
  • Run the new Healthcare Tracker scaffolder against a fresh Blazor Web App (net8.0–net11.0)
  • Verify generated files, package references, Program.cs / service registration, and theme stylesheet links
  • Confirm code-modification steps apply correctly when MSBuildWorkspace returns an empty project (preview SDK scenario)
  • Smoke-test the generated app (renders, Toolkit components load, no missing references)
  • Existing scaffolders (Blazor CRUD, Identity, Minimal API, etc.) continue to work unchanged

@Indhumathy-Loganathan
Indhumathy-Loganathan merged commit e9d866e into main Sep 23, 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