Building the .sln - Havokx89/DudeBot.NET GitHub Wiki

Building DudeBot.NET

Before Building

  • Ensure you have .NET 9.0 SDK installed.
  • This need to be the Build App; Runtime is not sufficient.

Building Instructions

  • Install an IDE. This example uses Visual Studio 2022.
  • Select Git > Clone Repository and provide the URL https://github.com/Havokx89/DudeBot.NET.git.
  • In the top menu bar, select "SysBot.Pokemon.WinForms" as the Startup project. You can choose either "Debug" or "Release".
  • If there have been new changes since you cloned the repository, you can get them by selecting Git > Pull. This assumes you haven't made any changes.
  • Open the solution under Solution Explorer. Right-click on the solution and select "Rebuild Solution", or use Build > Rebuild Solution from the top menu.

Building as a Single File

Optionally, you can build locally as a single file. This will not allow you to add extra DLLs in the same folder. This will require 4 DLLs to be placed in the solution's folders:

  • DudeBot.NET\SysBot.Pokemon\deps needs: PKHeX.Core.dll & PKHeX.Core.Automod.dll

  • DudeBot.Net\SysBot.Pokemon.WinForms\deps needs: PKHeX.Drawing.dll & PKHeX.Drawing.PokeSprite.dll

  • Right click on "SysBot.Pokemon.Winforms" in the Solution Explorer and select "Publish."

  • Click on "Show All Settings" and ensure that your configuration uses an x64 profile (Release or Debug are both fine). Select a target location, and check "Produce Single File". Your settings should look like this.

  • Save your settings and click "Publish". This should build to the folder you selected.