Visitar URL original
Build with Command Line · YAFNET/YAFNET Wiki · GitHub
Skip to content

Build with Command Line

Ingo edited this page Nov 13, 2026 · 10 revisions

Build YAF.NET v4 with the command line

Requirements

  1. .NET 11.0 SDK or later
  2. Node.js (current LTS version)

Build

  1. Install the Node packages. In the yafsrc/YetAnotherForum.NET folder run:

    npm install
  2. Compile the JavaScript and CSS files (in the same folder):

    npm run build

    This runs the default Grunt task. If you have installed the Grunt CLI globally (npm install -g grunt-cli), grunt works as well.

  3. Build the solution for your database from the yafsrc folder:

    Database Command
    Microsoft SQL Server dotnet build YAF.NET-SqlServer.slnx
    MySQL / MariaDB dotnet build YAF.NET-MySql.slnx
    PostgreSQL dotnet build YAF.NET-PostgreSQL.slnx
    SQLite dotnet build YAF.NET-Sqlite.slnx

Run

Start the web project from the yafsrc/YetAnotherForum.NET folder, e.g. for SQL Server:

dotnet run --project YAF-SqlServer.csproj

Set the connection string in appsettings.json first (see Installation). On the first start you are redirected to the installation wizard.

To run your local source in Docker instead, see Docker - Test compose files.

Clone this wiki locally