Skip to content

Build with Visual Studio

Ingo edited this page Nov 15, 2026 · 13 revisions

Build YAF.NET v4 with Visual Studio

Requirements

  1. Visual Studio 2026 or later, with the ASP.NET and web development workload
  2. .NET 11.0 SDK or later
  3. Node.js (current LTS version)

Build

  1. Open the solution for your database from the yafsrc folder:

    Database Solution
    Microsoft SQL Server YAF.NET-SqlServer.slnx
    MySQL / MariaDB YAF.NET-MySql.slnx
    PostgreSQL YAF.NET-PostgreSQL.slnx
    SQLite YAF.NET-Sqlite.slnx
  2. Restore the Node packages: in Solution Explorer, right-click npm in the web project and select Restore Packages.

    Restore npm packages

  3. Compile the JavaScript and CSS files: open View > Terminal, change to the yafsrc/YetAnotherForum.NET folder and run:

    npm run build

    This runs the default task of build.js. Since v4.0.11 the build no longer uses Grunt, so there is no Gruntfile.js in the Task Runner Explorer anymore. The other tasks are listed in Build with the command line.

  4. Build the solution, or start the web project with F5. Set the connection string in appsettings.json first (see Installation).

Clone this wiki locally