Skip to content

Modified the scaffolding setup instruction steps. - #5

Merged
Indhumathy-Loganathan merged 1 commit into
mainfrom
toolkit-scaffolding
Oct 8, 2026
Merged

Indhumathy-Loganathan merged 1 commit into
mainfrom
toolkit-scaffolding

Conversation

@Indhumathy-Loganathan

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

Copy link
Copy Markdown
Owner

Summary

This PR improves the Syncfusion Blazor Toolkit scaffolding experience by enhancing project structure detection, configuration file discovery, and setup reliability across different Blazor application templates and framework versions.

The changes remove assumptions about fixed file locations and introduce more resilient resolution logic for Toolkit-specific configuration updates. These improvements enable the scaffolder to work consistently across newly created and existing Blazor applications while maintaining compatibility with evolving project structures.

Key Changes

1. Improved _Imports.razor Resolution

  • Enhanced Toolkit setup logic to dynamically locate applicable _Imports.razor files.
  • Removed dependency on a single hardcoded file location.
  • Added support for varying project layouts used across different Blazor templates.
  • Improved handling of applications where imports files are stored outside the Components folder.

2. Theme File Discovery Enhancements

  • Improved theme host file detection for Toolkit stylesheet registration.
  • Added support for multiple application layouts and hosting scenarios.
  • Enhanced fallback handling when expected theme host files are unavailable.
  • Improved compatibility across Blazor Web App and WebAssembly project structures.

3. Cross-Platform Path Handling Improvements

  • Refined path normalization and resolution logic used by the Toolkit scaffolder.
  • Improved file matching behavior for Windows and non-Windows environments.
  • Ensured generated code modification configurations correctly reference project files using OS-native paths.
  • Addressed file lookup inconsistencies that could prevent Toolkit configuration updates from being applied.

4. Code Modification Reliability Improvements

  • Enhanced generation of Toolkit code-modification configuration entries.
  • Improved placeholder replacement behavior during scaffolding execution.
  • Refined handling of optional theme and imports file modifications.
  • Improved resiliency when configuration files are missing or project structures differ from template defaults.

5. Validation and Error Handling Improvements

  • Added handling for missing configuration files and invalid configuration content.
  • Improved behavior when optional Toolkit integration targets are unavailable.
  • Enhanced logging and validation paths during scaffolding execution.
  • Improved safeguards around project modification workflows.

6. Expanded Test Coverage

  • Added unit test coverage for path canonicalization and path conversion helpers.
  • Added validation for theme file resolution scenarios.
  • Added validation for imports file resolution scenarios.
  • Added coverage for configuration generation behavior with different project structures.
  • Added regression tests covering cross-platform file path handling.
  • Added validation for missing files, invalid configuration content, and edge-case scenarios.

Output

NA

Validation

  • Build the Scaffolding solution successfully.
  • Verify Toolkit scaffolding executes successfully on Blazor Web App projects.
  • Verify Toolkit scaffolding executes successfully on standalone Blazor WebAssembly projects.
  • Verify _Imports.razor discovery works across different project layouts.
  • Verify Toolkit theme registration works for supported hosting models.
  • Verify generated code modifications are applied correctly.
  • Verify Toolkit package references remain correctly configured.
  • Verify Toolkit service registrations remain correctly configured.
  • Verify scaffolding behaves correctly when optional files are missing.
  • Verify no duplicate Toolkit configuration entries are generated.
  • Verify applications build successfully after scaffolding.
  • Verify Toolkit components render correctly after setup.
  • Verify Windows and cross-platform path handling behaves correctly.
  • [x ] Verify existing scaffolding scenarios continue to function without regression.
  • Verify compatibility across .NET 8, .NET 9, .NET 10, and .NET 11 project templates.

@Indhumathy-Loganathan
Indhumathy-Loganathan merged commit 956644b into main Oct 8, 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