This Visual Studio extension automates the process of creating Sitefinity widgets in .NET Core, allowing developers to quickly generate widget components, including entities, view components, view models, and Razor views.
Installation
Download and install the extension from Manage Extensions in Visual Studio.
Restart Visual Studio after installation.
Right-click inside your project folder and select "Add Sitefinity Widget" from the context menu (look for the watermelon!).
Enter a widget name, and the extension will generate the necessary files.
Dependencies
Visual Studio 2022 or later
How It Works
When triggered, the extension prompts you for a widget name.
It then generates:
An Entity ({WidgetName}Entity.cs)
A View Component ({WidgetName}ViewComponent.cs)
A View Model ({WidgetName}ViewModel.cs)
A Razor View (Views/Shared/Components/{WidgetName}/Default.cshtml)
The widget is ready to be customized and used in Sitefinity!
Support & Contribution
For issues or feature requests, please create a ticket in the extension repository.