Skip to content

Latest commit

History

History
75 lines (47 loc) 路 1.71 KB

BUILDING.md

File metadata and controls

75 lines (47 loc) 路 1.71 KB

Building YAF.NET

Building the YAF.NET v4.x.x Source with the command line...

Command-Line Build

Pre-Requisites

You will need the following software installed:

  1. .NET 8.0 SDK or higher
  2. Node.js

Execution

  1. Install Node Packages from inside the ..\yafsrc\YetAnotherForum.NET folder install the node packages
> npm install
  1. Compile the JS and CSS files
> grunt
  1. Build the YAF.NET Source from the ..\yafsrc folder

for Ms SQL Server

> dotnet build YAF.NET-SqlServer.sln

for MySQL

> dotnet build YAF.NET-MySql.sln

for PostgreSQL

> dotnet build YAF.NET-PostgreSQL.sln

for SQLite

> dotnet build YAF.NET-Sqlite.sln

Visual Studio Build

Pre-Requisites

  1. Visual Studio 2022 or higher
  2. .NET 8.0 SDK or higher
  3. Node.js
  4. NPM Task Runner

Execution

  1. Open YAF.NET-SqlServer.sln in Visual Studio for the Ms Sql server Version (Or the YAF.NET-MySql.sln, YAF.NET-PostgreSQL.sln, YAF.NET-Sqlite.sln depending on which database you want to use).
  2. Install (Restore) the node packages from the Solution Explorer

RestoreNpmPackages

  1. Run the Default Grunt Task to Compile the JS and CSS Files

taskrunner2

  1. Build the entire solution, or run the Web Project