-
Notifications
You must be signed in to change notification settings - Fork 24
Compilation
Starting in 3.0, PKMN-NTR uses PKHeX.Core for Pokémon editing, legality checking and other functions. Also, starting in 3.5 PKHeX.WinForms is used for the editing layout. These dependencies were added as a project references, this makes these components independent from the application. This means you can now use the latest commits from PKHeX in PKMN-NTR by just updating the source code and compiling the application again.
However, this change makes it mandatory to have PKHeX source alongside with PKMN-NTR source in order to open the project and compile it.
In Visual Studio, if you have the GitHub Extension installed, you can easily add both sources in the Team Explorer - Connect window, just go to Local Git repositories and clone the two repositories using the following URL's:
Or you can go to PKMN-NTR and PKHeX GitHub pages, click on Clone or download and select Open in Visual Studio, it will open the application to clone the repository. After cloning both, you can open the PKMN-NTR solution and compile it.
At the end, in order to make PKMN-NTR recognize PKHeX source code, the folder structure should be the next one:
- Common parent folder (usually is the Source/Repos directory in your user folder).
- PKMN-NTR
- License and Readme files, and other PKMN-NTR folder.
- PKHeX
- License and Readme files, also the PKHeX.Core and PKHeX.WinForms folders.
- PKMN-NTR
PKMN-NTR also uses the following dependencies, if you use Visual Studio, it should download them automatically when you open the solution:
- Costura.Fody
- Octokit
- .NETStandard Library
- Development is being made on Microsoft Visual Studio 2017 (2015 should work too).
- Don't use the Mono- build settings.
- The latest stable version of PKHeX.Core and PKHeX.WinForms is used for building, if you use newer commits there might be some bugs or the program will not compile at all.
- To revert to a previous commit, open PKHeX source in Visual Studio, go to Team Explorer, select Sync. Pull all recent commits and then go to Actions -> View History. Search for the commit listed below and reset your local repository deleting all changes.
- To see the commit used in certain version of PKHeX, see the changelog of the release.