Jump to content

Using PKHeX: How to Compile The Latest Version of PKHeX


Recommended Posts

I decided to make a quick video and guide on how to compile PKHeX since most of the guides or "tutorials" I see out there are either outdated or way too complicted for the average user that just wants to quickly get the latest version of PKHeX. I know when I first started to get into the compiled versions of PKHeX, I had so much trouble getting things to work. Ill also include a video I just made explaining it too.

 

1. Go and download Microsoft Visual Studio Community 2017 Here: https://www.visualstudio.com/downloads/

001.jpg

2. Install and make sure Microsoft VS opens properly (you may need the latest .NET installed)

 

3. go to https://github.com/kwsch/PKHeX and download the latest master

 

Untitled-2.thumb.png.004d32c67d3e302e3d52cad90220e3c5.png

 

4. Unzip the "PKHeX-master" folder from the zip you just downloaded and open "PKHeX.sln"

 

Untitled-3.png.b593d36e1904094a8ef464424396fea9.png

 

5. click on "Build" and then "Build Solution"

 

Untitled-4.thumb.png.67caefab3cac87ac9ba699d072ab70a4.png

 

6. Make Sure it Says that 0 Failed. If any Files Fail to Build I Would Just Retry Step 5

 

Untitled-5.thumb.png.3b9c9f90d993ff65e4deb644c1740271.png

 

7. Go back to the "PKHeX-master" Folder from Earlier and Enter (PKHeX.WinForms>>bin>>Debug) If Everything Worked you Should see All of the PKHeX Files in this Folder. (You Only Need the PKHeX Program (the one with the PKHeX Logo) and the PKHeX.Core.dll File. The Rest of the "PKHeX-master Folder Can be Deleted.

 

Untitled-6.png.4c975f4928d3cec4d5badcccc7129678.png

 

Congrats! You Just Learned How to Compile PKHeX. If You Need Any More Clarification Just Check Out My Video Tutorial Above.B|


View full tutorial

Edited by NinFanBoyFTW
  • Like 3
Link to post
Share on other sites
  • NinFanBoyFTW changed the title to How to Compile The Latest Version of PKHeX [Tutorial]
  • 1 year later...
1 hour ago, ViolentDarkBrown said:

I am having trouble compiling PKHeX with Visual Studio following this guide. It tells me it couldn't process the request due to the mark of the web.

Is there anyway around this or an alternative to Visual Studios?

Please I would be grateful for the help.

Before unzipping, right click the zip and properties -> unblock.

  • Thanks 1
Link to post
Share on other sites
  • 1 month later...
  • 2 months later...
53 minutes ago, AlphaFefol said:

I keep getting the following error, how do I fix this?

The current .NET SDK does not support targeting .NET Core 2.1.  Either target .NET Core 1.1 or lower, or use a version of the .NET SDK that supports .NET Core 2.1.

Install the .NET Core sdk that it requires.

Link to post
Share on other sites
  • 9 months later...
  • 2 months later...

Hi,

It seems this is outdated, in my (PKHeX.WinForms>>bin>>Debug) folder there are 2 options. Do we use net46 or netcoreapp3.0 found in the debug folder?

image.thumb.png.bb725c9eae2777c7da2939c44c1f0151.png

Link to post
Share on other sites
1 hour ago, Awacka said:

Hi,

It seems this is outdated, in my (PKHeX.WinForms>>bin>>Debug) folder there are 2 options. Do we use net46 or netcoreapp3.0 found in the debug folder?

It doesn't really matter. The net64 build requires the .NET Framework runtime and comes as a single executable that doesn't require any DLL files, while the netcoreapp3.0 build reqires the .NET Core runtime and needs some DLL files, as you can see if you compare both directories. The functionality of both builds is identical.

  • Like 1
Link to post
Share on other sites

Hello! I was following the video guide but I keep getting this error in Visual Studios. What am I missing that I need to download to fix this error? I included the .NET programs I currently have installed. Thank you for the help!

netcore.JPG

netcore2.JPG

Link to post
Share on other sites
  • 1 month later...
3 hours ago, BigPapiBrian said:

Hey... In VS 2019, I don't see "Build." Do you mind clarifying where it's located?

The Build menu in the 2019 version is still there where it has been in the 2017 version, as shown in the picture of step 5 in the first post.

If for whatever reason the menu is not there, you could as well right click the solution in the Solution Explorer on the right and build it from there. Or even easier, just press F6.

solution-explorer.png.b38c11d800f162b14133c3d50d087ff6.png

Link to post
Share on other sites
19 hours ago, BlackShark said:

The Build menu in the 2019 version is still there where it has been in the 2017 version, as shown in the picture of step 5 in the first post.

If for whatever reason the menu is not there, you could as well right click the solution in the Solution Explorer on the right and build it from there. Or even easier, just press F6.

solution-explorer.png.b38c11d800f162b14133c3d50d087ff6.png

Thanks for your help!

Link to post
Share on other sites
39 minutes ago, BlackShark said:

@BigPapiBrian Looks like you don'thave .NET desktop development installed in VS?
Open Visual Studio Installer, choose Modify on your VS 2019 installation and check if you have the following installed.

vs.thumb.png.572d66bc7c0a8340626f26679b083f9b.png

Nope, I did not. Installing now!

Edited by BigPapiBrian
Link to post
Share on other sites
3 minutes ago, BlackShark said:

Great that you got it working!

@BlackShark Last question, then I'll leave u alone. Do u mind telling me what files I need for the net46 version? I looked at the tutorial, but I have multiple Core.dll files. Thank you so much for all of your help!

Link to post
Share on other sites

Every file in the net46 folder that is not a .pdb or .config file is needed.

In the menu bar at the top of VS there's a dropdown where you can change the project type from Debug to Release. If you than rebuild the solution you will only get only the exe that doesn't need any dlls (you still get the pdbs and configs, but those can be deleted).

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...