d3xMachina / BetterJoy

Allows the Nintendo Switch Pro Controller, Joycons and SNES controller to be used with CEMU, Citra, Dolphin, Yuzu and as generic XInput
Other
79 stars 6 forks source link

[HELP] Cannot build the project #28

Closed Crackhog closed 3 months ago

Crackhog commented 3 months ago

I am trying to build the project using the Build Tools for Visual Studio 2022, however, the build fails. It says that Nefarius.ViGEm.Client with a version >=2.0.0 couldn't be found, and NuGet only has versions 1.21.256 and lower. I also cannot build it myself because the GitHub Page states that it needs Visual Studio 2019 for builing, which isn't available for download anymore.

Any help would be greatly appreciated.

d3xMachina commented 3 months ago

You've been looking at the wrong page because it states Visual Studio 2022 not 2019. Follow the instructions here

Also Nefarius.ViGEm.Client is build locally, it's not the version on the Nuget server, you need to use "git clone --recurse-submodules https://github.com/d3xMachina/BetterJoy.git" to also get this module and it should be included automatically with the nuget.config config file in the repo.

Crackhog commented 3 months ago

Sorry, I phrased it badly. I was meaning to say that I cannot build Nefarius.ViGEm.Client myself because it requires Visual Studio 2019 as it says here: https://github.com/nefarius/ViGEmClient?tab=readme-ov-file#prerequisites

While writing this reply, I tried running PUBLISH.bat again to see which error messages came up, and it just worked this time. I'm not sure what caused my first few attempts to fail, but it apparently works now?

Thank you for the quick reply, I think my issue is resolved now.