How does nuget work with non-VS projects?

According to Microsoft documentations, I'd need to use nuget to load the GameInput library. Issue is that I'm only using the MSVC linker, not the whole MS toolchain, especially as my language of choice is D.

(I can also accept other alternatives to load the GameInputCreate function.)

6 points · 3 comments · view on lemmy.world

3 Comments

sleep_deprived@lemmy.dbzer0.com · 3 pts · 301d

From my knowledge, you can either use the nuget CLI (which is just a portable exe you can download) and do nuget install Microsoft.GameInput to download and extract the package into the cwd, or download the package directly from https://www.nuget.org/packages/Microsoft.GameInput (.nupkg files are just zips). Inside should be everything you need, .libs and headers and such.

ZILtoid1991@lemmy.world · 1 pts · 301d (1 reply)

Well, it seems to that all I needed is to load the GameInput.dll, then I have the library to use, except I messed up the VTables, so I have to fix that first.

ZILtoid1991@lemmy.world · 1 pts · 300d

Update: Now I need to use GameInputRedist.dll instead, but kept the GameInput.dll parts there just in case if I ever port to Xbox.