Skip to content

03 ‐ Build

Distractic edited this page Jan 19, 2024 · 1 revision

How to build

Command to build the project:

dotnet build

Your plugin is now compiled to a DLL file in the Template/bin with the name Template.dll.

Change build behavior

By default, when the project is built, the following steps are executed:

  • The plugin's DLL is copied to the game plugin directory.
  • The opened clients are closed.
  • The game is launched.

The steps are defined in the Template.csproj file.

Check the configuration section for the available variables to modify the build steps.

Examples:

  • Build without starting the game:
dotnet build -p:StartGame=false
  • Build and start 2 instances of the game:
dotnet build -p:StartGame=true -p:NumberOfClients=2

Clone this wiki locally