LGN 4.0.6

dotnet tool install --global LGN --version 4.0.6
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local LGN --version 4.0.6
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=LGN&version=4.0.6
                    
nuke :add-package LGN --version 4.0.6
                    

Prerequisites

ASP .NET Core

Install .NET SDK 8+

https://dotnet.microsoft.com/en-us/download

Install EntityFramework tools

dotnet tool install --global dotnet-ef

Install

the resource pre-compiler for Lagoon is installed with the following command:

dotnet tool install --global LGN

Install Terser (optional)

Used when compiling in "RELEASE" to minify javascript resources using terser.

lgn install

Update

To update, use the following command:

dotnet tool update --global LGN

Starting a new Lagoon application

Create the application

Execute the following command to create a new application, for example:

lgn new web MyApp

Creating the database

To create the database for the application, go to the "Model" folder in the solution and run the following command:

cd Model
dotnet ef database update

Run it !

Use Visual Studio or "dotnet run"

Updating a Lagoon application

lgn update

lgn update keeps the major version of Lagoon already referenced by the solution: an application on Lagoon 3.2.1 is updated to the latest 3.x.y available, never to 4.0.0. To migrate to the next major version, use:

lgn update --allow-major

When the solution is linked to the Lagoon sources (lgn link), the Lagoon modules are referenced as projects and carry no version: lgn unlink then restores the latest major version available.

Cleaning the build outputs

lgn clean deletes the bin, obj and _vroot folders in all the subfolders of the current directory, or of the given folder (a solution or project file cleans its folder):

lgn clean
lgn clean ./MyApp

To skip some subfolders (neither explored nor deleted), give their names with -x|--exclude, repeated or separated by ; or ,. The .git and node_modules folders are always skipped.

lgn clean -x Tools -x "Samples;Docs"

When some files cannot be deleted (locked by the IDE, a running application or a build server, or protected), everything else is still deleted, then each remaining item is listed with the reason, and the command returns a non-zero exit code.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
4.0.6 114 9/25/2026
4.0.5 128 9/19/2026
4.0.4 113 9/9/2026
4.0.3 107 9/8/2026
4.0.2 105 9/3/2026
4.0.1 117 8/24/2026
4.0.0 191 7/29/2026
4.0.0-beta0007 141 7/2/2026
4.0.0-beta0006 130 7/1/2026
4.0.0-beta0005 133 7/1/2026
4.0.0-beta0004 125 6/26/2026
4.0.0-beta0003 110 6/24/2026
4.0.0-beta0002 111 6/15/2026
4.0.0-beta0001 113 6/14/2026
3.4.0 1,970 6/18/2025
3.4.0-beta0001 205 6/18/2025
3.3.3 582 4/5/2025
3.3.3-beta0001 159 4/4/2025
3.3.2 452 4/1/2025
3.3.2-beta0001 170 1/27/2025
Loading failed