kwsch / pkNX

Pokémon (Nintendo Switch) ROM Editor & Randomizer
https://projectpokemon.org/home/forums/topic/48647-pknx-nintendo-switch-rom-editor-randomizer/
GNU General Public License v3.0
339 stars 106 forks source link

pknx not launching, must install .NET but it is already installed #283

Closed Phyore closed 1 year ago

Phyore commented 1 year ago

Trying to run the latest pipeline artifact. Having not updated for a while. It mentioned requiring 6.0.0. Downloaded the runtime on the linked page from the error.

pknx still did not load, same error. Tried a restart, tried uninstalling .NET 6.0.10 and isntalling 6.0.0 and still getting the same error.

OS: Windows 10 Build: https://dev.azure.com/project-pokemon/pkNX/_build/results?buildId=5666&view=results

image

image

Phyore commented 1 year ago

I think I have solved this. It looks like I needed to install: https://dotnet.microsoft.com/en-us/download/dotnet/6.0 image

And now the app runs. I found this out by looking into the pkNX.runtimeconfig.json

duckdoom4 commented 1 year ago

That's the SDK you're installing now though. If that's really needed to run the app I think we need to look at that

duckdoom4 commented 1 year ago

Screenshot_20221022-142850.jpg

I think you only need the desktop runtime

Phyore commented 1 year ago

That's the SDK you're installing now though. If that's really needed to run the app I think we need to look at that

Yeah, installing the first (Linked from the error popup) didn't seem to let me run. Only after installing the SDK did it start working. As I mentioned the runtime config mentioned needing both. (Although I could just be reading that wrong) image

duckdoom4 commented 1 year ago

The SDK is the source development kit. This includes a whole lot of extra files that you shouldn't need to run the app.

From what I can tell, you installed the .NET runtime, but not the .NET Desktop Runtime.

The second is needed to run windows only components that we use (Win Forms)

Phyore commented 1 year ago

The SDK is the source development kit. This includes a whole lot of extra files that you shouldn't need to run the app.

From what I can tell, you installed the .NET runtime, but not the .NET Desktop Runtime.

The second is needed to run windows only components that we use (Win Forms)

You are right! I have uninstalled all those bits and solo installed the desktop framework and it works fine now.

image The error pop up when hitting "yes" takes you to download the .NET runtime and not the .NET Desktop Runtime. I think that is where the problem is then.

I just assumed it'd take me to the right place ha!

duckdoom4 commented 1 year ago

Unfortunately I don't think we can do much about that error. That's part of .NET, not of our code :/

Good that it worked tho!

Phyore commented 1 year ago

Unfortunately I don't think we can do much about that error. That's part of .NET, not of our code :/

No worries there! Might be worth throwing a screenshot with an arrow pointing to the right download on the "Download" section. Just to stop anyone else maybe having that issue in future. But glad it is now working! Thanks for the assist!

duckdoom4 commented 1 year ago

Yeah I could add that.

No worries, happy to help and happy modding 🙂