Balsa.SDK
Contents:
  1. Visual Studio Setup Guide
    1. Getting Started with a Plugin Mod project
    2. Set up your Mod Project

Visual Studio Setup Guide

Getting Started with a Plugin Mod project

Balsa supports plugin mods in the form of C# assemblies.

This guide will take you through the steps to set up a Plugin mod project in Visual Studio 2019 Community. It assumes you have Visual Studio installed already. If not, you can get it here.

Set up your Mod Project

This guide assumes you’ve already gone over the steps to Create your Mod Folder. If you haven’t already, give that a read first.


:construction: To do: add VS project setup steps


[Optional]: Automate copying output files to the mod folder

You can automate the process of copying over your output dll file from your VS solution to your mod folder in Balsa/Addons/, so that the output dll file gets copied at the end of each build.

To do this, open your project properties in VS, and in the Build Events tab, add the following line to your post-build command line:

copy /Y $(SolutionDir)$(OutDir)$(TargetFileName) <BalsaInstallFolder>\Addons\MyMod\$(TargetFileName)

(remember to replace <BalsaInstallFolder> with the actual path to your Balsa install)

Now, every time you run a successful build, VS should take care of copying over the dll file to where it needs to be.