Repository navigation
Build with Command Line
- .NET 11.0 SDK or later
- Node.js (current LTS version)
-
Install the Node packages. In the
yafsrc/YetAnotherForum.NETfolder run:npm install
-
Compile the JavaScript and CSS files (in the same folder):
npm run build
This runs the default task of
build.js(node build.jsworks as well): it bundles the JavaScript with webpack, collects the Font Awesome icons used by the forum and compiles the CSS of the forum and of all themes.[!NOTE] Since v4.0.11 the build uses the Node script
build.js. Grunt and theGruntfile.jsare gone, a globalgrunt-cliis not needed anymore.Other tasks you can run with
npm run [task]:Task Description cssOnly compiles the CSS (forum, admin and all themes), without the JavaScript. webpackOnly bundles the JavaScript. emailTemplatesBuilds the email templates of the themes with bootstrap-email.webpConverts the images to WebP. themeKitCreates the npm package @yafnet/theme-kitinyafsrc/YAFNET.ThemeKit, see Themes.updateVersionNumberWrites the version of package.jsoninto the project and NuGet files.The full list is in the
scriptssection ofpackage.json. -
Build the solution for your database from the
yafsrcfolder:Database Command Microsoft SQL Server dotnet build YAF.NET-SqlServer.slnxMySQL / MariaDB dotnet build YAF.NET-MySql.slnxPostgreSQL dotnet build YAF.NET-PostgreSQL.slnxSQLite dotnet build YAF.NET-Sqlite.slnx
Start the web project from the yafsrc/YetAnotherForum.NET folder, e.g. for SQL Server:
dotnet run --project YAF-SqlServer.csprojSet 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.
YetAnotherForum.NET (YAF) the Open Source Discussion Forum for ASP.NET - https://YetAnotherForum.NET - Support me on Ko-fi
Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved
Getting started
- About YAF.NET
- Features
- Docker
- Installation (IIS)
- Hosting on Linux with nginx
- Integration (ASP.NET Core)
- Update v4 to a newer v4
- Upgrade from v3 to v4
Configuration
Administration
- Admin guide
- Forums and categories
- Users, roles and permissions
- Board settings
- Host settings
- Content
- Mail and notifications
- Spam protection
- Maintenance
- Boards, languages, page access
- Database backup
- Private forum
- Change the board logo
- Themes
Help
Development
Legacy (v3 and older)