Building & Editing Sysbot.NET


This page covers how to compile Sysbot.NET and how to make custom edits to source code using Visual Studio on a Windows device. We will be working with Sysbot.NET fork by Lusamine.

Getting Started:

In order to build the program you will need to install the following:

Once you have installed the required programs and dependencies, restart your device to ensure that everything has been properly installed or you may face issues.

In this guide we will learn how to build/compile the application, switch between different branches, make small edits to existing source code, and how to keep up to date with the most recent commits of the program.


Compiling The Application:

Some Sysbot.NET projects will require the user to compile the source code before use. This is typically done by cloning the Github repository in Visual Studio.

Figure 1 - Cloning the repository


Step-by-step instructions:
  1. Open a new instance of Visual Studio and open the GitHub repository you would like to clone inside your browser.
  2. On the repository page, click the green Code button to reveal the dropdown menu.
  3. Copy the .git link to clipboard, then revisit the Visual Studio window.
  4. Click Clone a repository in the table on the right, then click >GitHub.
  5. Paste the repository link into the field and select a path.
  6. Click Clone and wait for a new window to open.
Figure 2 - Repository successfully cloned


Once you have cloned the repository you should see something similar to the above image. Next we need to switch the branch to Moarencounterbots to avoid compiling the wrong branch.

Figure 3 - Switching branches


Step-by-step instructions:
  1. With the repository open in visual studio, click Master at the bottom right-hand side of the window.
  2. Click Remotes to see a full list of remote branches for the repository.
  3. Click moarencounterbots and wait for Visual Studio to switch the branch.
  4. You should now see moarencounterbots at the bottom right-hand side of the window instead.
Figure 4 - Building the program


Step-by-step instructions:
  1. In the top menu bar, select x64, Then select SysBot.Pokemon.WinForms as the Startup project.
  2. Choose either Debug or Release, in this example we will be choosing Release.
  3. In the menu at the top of the Visual Studio window select Build, then click Re-build Solution
  4. Wait for the program to finish building. You can find the compiled application inside of the Sysbot.NET/SysBot.Pokemon.WinForms/bin/x64 directory.

Optionally, you can choose to build the .exe as a single file instead, this is done by doing the following:

Step-by-step instructions:
  1. In the top menu bar, select x64, Then select SysBot.Pokemon.WinForms as the Startup project.
  2. Choose either Debug or Release, in this example we will be choosing Release.
  3. Right click SysBot.Pokemon.WinForms in the solution manager, then click Publish
  4. Click on Show all settings and ensure that your configuration uses an x64 profile.
  5. Select a target location, and check Produce Single File.
  6. Save your settings and click Publish, then wait for the program to finish building.
  7. You can find the compiled application inside of the Sysbot.NET/SysBot.Pokemon.WinForms/bin/x64 directory.