Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 07/27/23 in all areas

  1. @suloku I hope I'm not being too presumptuous with this. I'm writing this cause I was having issues with converting old plugins to work with the current PKHeX.Core; I thought that in general I should share my steps that got it working with the public. For converting from NET framework to NET7.0, in order to use the latest PKHeX.Core nuget (the steps I could remember are): 1. When editing the csproj, change the line <TargetFrameworks>net48</TargetFrameworks> (or whatever applicable netxx) to <TargetFramework>net7.0-windows</TargetFramework> 2. Under Properties for the csproj, enable Window Forms 3. Add new item > Form (Windows Form) 4. Add this within the code of the plugin's namespace that you use static void Main() { ApplicationConfiguration.Initialize(); Application.Run(new Form1()); } 5. Update the nuget 6. You should be able to build the plugin now. If you encounter errors, save and reload. I would imagine there's an easier way to do this, especially without the usage of an untouched Form1, but I couldn't figure it out, and didn't want to port over all my code to the updated Example Plugin.
    1 point
×
×
  • Create New...