Nutzzz / GameCollector

.NET library for finding games.
Other
5 stars 0 forks source link

Add handlers for package managers #40

Open Nutzzz opened 2 months ago

Nutzzz commented 2 months ago

I discovered there's an API to Windows Package Manager. Combining the equivalent of winget list with an interface to winget search --tag game gives us a decent implementation of #35 . The PackageHandlers category could also potentially include handlers for chocolatey, scoop, etc.

Nutzzz commented 2 months ago

I'm having issues trying to implement this. Because of the Microsoft.WindowsPackageManager.ComInterop package, it seems the handler requires a Windows-specific TargetFramework (e.g., net8.0-windows10.0.19041.0), which apparently means the Example project must have a similar target, which makes it no longer cross-platform [not that any of my non-upstream handlers are]. Maybe I could have two Example projects? Or maybe just be cheesy and call winget (at least for now)?