Skip to content

Create a new Module

Install the template

In PowerShell run:

dotnet new --install Bannerlord.Templates

Set Environment Variable

Create a Module

In PowerShell:

cd YOUR_FOLDER_WHERE_YOU_KEEP_ALL_YOUR_MODS
dotnet new blmodfx --name "YOUR_MOD_NAME_HERE"

Open in the Visual Studio

Go to newly created module's folder and press on .csproj file

If Breakpoints and Hot Reload does not work

The breakpoint will not currently be hit. No symbols have been loaded for this document.

To fix in the .csproj file change line:

    <TargetFramework>netstandard2.0</TargetFramework>

to

    <TargetFramework>net472</TargetFramework>