Compile PKHeX on your own

This is adapted and improved from a thread on /vp/

---

Okay, since I've seen a bunch of people asking for a compiled version of the program, I figured I'd make a little guide telling you how to do it. PKHeX is updating constantly, so make sure to check the Github every hour or so and compile the program as soon as you can. It's actually very easy to do it and you won't need to download large libraries or more than one program. There are other methods, of course, but this one is the easiest, simpler and faster way to do it.

1. Download the PKHeX repository from here by clicking on "Clone or download" and then on "Download ZIP": https://github.com/kwsch/PKHeX

2. Download MSBuild Tools from here and install it: https://www.microsoft.com/en-us/download/details.aspx?id=48159

3. If you don't have it, install the latest .NET Framework (4.6.2) from here https://www.microsoft.com/en-us/download/details.aspx?id=53344

4. Right click on Computer (from your desktop or the start menu), select Properties, then Advanced system settings. Click on the Environment variables button. Find the PATH variable and double-click on it. At the end of the Windows path you should see there, add a ; and then, immediately after it add this path: C:\Program Files (x86)\MSBuild\14.0\Bin. If you have a 32bit Windows version, remove the (x86). Hit Accept or Apply in every window to close them and save your settings.

5. Extract the .zip file you downloaded from Github and go to the folder called PKHeX (NOT PKHeX-master). In there, hold Shift and right click on an empty part of the folder, then select Open command prompt here. In the command prompt simply write MSBuild and hit Enter.

---

If you're met with the error described here http://prnt.sc/d61ia5 open "C:\Program Files (x86)\Reference Assemblies\Microsoft\MSBuild\v14.0" and make sure mscorlib.dll is in there (you can search for it on your PC, it will be one of the most recent ones. Should be around 5 MB in size), then in step 5 write the command

msbuild -p:FrameworkPathOverride="C:\Program Files (x86)\Reference Assemblies\Microsoft\MSBuild\v14.0"
 

Inochi.no.Zenmai

Well-Known Member
OP
Member
Joined
Jun 1, 2013
Messages
193
Trophies
0
XP
377
Country
United States
This procedure should work, but PKHeX uses the .Net Framework 4.0, not 4.6.2.

Yes, that's why I added the last paragraph with the Path Override option. Couldn't find a simpler solution than that.

I have W8.1 BTW, and when I wanted to install Framework 4.0 it said I already had it installed. Still didn't work.
 

kkusagami

Well-Known Member
Member
Joined
Sep 14, 2009
Messages
170
Trophies
1
XP
1,343
Country
Malaysia
but this below site is not working.
http://teamcity.skyeditor.org/project.html?projectId=PKHeX_PKHeXPublic&tab=projectOverview

this.jpg


After i have done this ,i cant find the Pkhex exe. Any Help?
 
D

Deleted User

Guest
For Linux users, use Monodevelop. Open the sln file from the git clone in it, choose a version next to the play button (I chose release), then click the play button.
 
Last edited by ,
  • Like
Reactions: Atricer

leerpsp

Well-Known Member
Member
Joined
Feb 22, 2014
Messages
1,742
Trophies
0
Age
33
XP
1,871
Country
United States
sorry to revive an old post but what am i doing wrong i keep trying to compile the new pkhex on my own it says its done it i go to the pkhex > bin > Debug and the exe is not there iv done every thing like the post has told me but its a no go :(
 

evandixon

PMD Researcher
Developer
Joined
May 29, 2009
Messages
1,725
Trophies
1
Website
projectpokemon.org
XP
2,347
Country
United States
sorry to revive an old post but what am i doing wrong i keep trying to compile the new pkhex on my own it says its done it i go to the pkhex > bin > Debug and the exe is not there iv done every thing like the post has told me but its a no go :(
PKHeX.WinForms/bin/Debug (or Release. Or Mono-Debug or Mono-Release if you're using Mono.)
 
  • Like
Reactions: Atricer and leerpsp

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • BigOnYa @ BigOnYa:
    Biomutant looks cool tho, may have to try that
  • Quincy @ Quincy:
    Usually when such a big title leaks the Temp will be the first to report about it (going off of historical reports here, Pokemon SV being the latest one I can recall seeing pop up here)
  • K3Nv2 @ K3Nv2:
    I still like how a freaking mp3 file hacks webos all that security defeated by text yet again
  • BigOnYa @ BigOnYa:
    They have simulators for everything nowdays, cray cray. How about a sim that shows you playing the Switch.
  • K3Nv2 @ K3Nv2:
    That's called yuzu
    +1
  • BigOnYa @ BigOnYa:
    I want a 120hz 4k tv but crazy how more expensive the 120hz over the 60hz are. Or even more crazy is the price of 8k's.
  • K3Nv2 @ K3Nv2:
    No real point since movies are 30fps
  • BigOnYa @ BigOnYa:
    Not a big movie buff, more of a gamer tbh. And Series X is 120hz 8k ready, but yea only 120hz 4k games out right now, but thinking of in the future.
  • K3Nv2 @ K3Nv2:
    Mostly why you never see TV manufacturers going post 60hz
  • BigOnYa @ BigOnYa:
    I only watch tv when i goto bed, it puts me to sleep, and I have a nas drive filled w my fav shows so i can watch them in order, commercial free. I usually watch Married w Children, or South Park
  • K3Nv2 @ K3Nv2:
    Stremio ruined my need for nas
  • BigOnYa @ BigOnYa:
    I stream from Nas to firestick, one on every tv, and use Kodi. I'm happy w it, plays everything. (I pirate/torrent shows/movies on pc, and put on nas)
  • K3Nv2 @ K3Nv2:
    Kodi repost are still pretty popular
  • BigOnYa @ BigOnYa:
    What the hell is Kodi reposts? what do you mean, or "Wut?" -xdqwerty
  • K3Nv2 @ K3Nv2:
    Google them basically web crawlers to movie sites
  • BigOnYa @ BigOnYa:
    oh you mean the 3rd party apps on Kodi, yea i know what you mean, yea there are still a few cool ones, in fact watched the new planet of the apes movie other night w wifey thru one, was good pic surprisingly, not a cam
  • BigOnYa @ BigOnYa:
    Damn, only $2.06 and free shipping. Gotta cost more for them to ship than $2.06
  • BigOnYa @ BigOnYa:
    I got my Dad a firestick for Xmas and showed him those 3rd party sites on Kodi, he loves it, all he watches anymore. He said he has got 3 letters from AT&T already about pirating, but he says f them, let them shut my internet off (He wants out of his AT&T contract anyways)
  • K3Nv2 @ K3Nv2:
    That's where stremio comes to play never got a letter about it
  • BigOnYa @ BigOnYa:
    I just use a VPN, even give him my login and password so can use it also, and he refuses, he's funny.
  • BigOnYa @ BigOnYa:
    I had to find and get him an old style flip phone even without text, cause thats what he wanted. No text, no internet, only phone calls. Old, old school.
    K3Nv2 @ K3Nv2: @BigOnYa...