Productivity Tools
Lagoon provides productivity tools to support development in Visual Studio. They accelerate repetitive tasks, but they do not replace developer analysis and decision-making.
Remember
These tools are development aids. The developer remains responsible for verifying the generated code, Lagoon conventions, translations, and functional behavior.
Installation in Visual Studio
- In Visual Studio, open the Tools / Options... menu.
- In the options window, open Environment / Extensions.
- Click Add.
- Enter the extension source:
- Name:
Productivity Tools - URL:
https://vsix.desirade.fr/
- Name:
- Confirm with OK.
- Open Extensions / Manage Extensions.
- Select Online / Productivity Tools.
- Select Lagoon, then click Download.
- Restart Visual Studio to complete the installation.
Usage
After installation, Visual Studio displays new icons in the toolbar, under the Lagoon extension menu.
Lagoon Menu
The Lagoon menu centralizes maintenance and generation actions related to the framework:
| Action | Usage |
|---|---|
| New application creation | Initialize a Lagoon application. |
Update the dotnet LGN tool | Update the Lagoon build tool. |
| Update Lagoon packages | Align the open project with expected Lagoon packages. |
| Documentation generation | Produce documentation from the project. |
Clean bin and obj directories | Remove build outputs from all projects in the solution. |
New Item... Menu
The New menu supports the creation of common elements in a Lagoon site:
- Create a new page;
- Create a component;
- Create a controller;
- Create an empty service;
- Create a data table administration page;
- Create a ViewModel and Model / ViewModel mapping;
- Create a new API call.
ViewModels and mapping
ViewModel creation and mapping are detailed on the dedicated page: ViewModel and mapping. This page does not go into detail on this topic.
Important considerations
- For a data table administration page, models must be defined in the
ContextorModelsfolders of the Model project. - After generation, systematically review the produced files to verify Lagoon conventions: Razor / C# separation,
Lg*components, translations#..., policies, and exception handling.