An open API service indexing awesome lists of open source software.

https://github.com/subnauticanitrox/nitrox.discovery

Finds the path to an installed game from its name, with MSBuild support
https://github.com/subnauticanitrox/nitrox.discovery

game-mod-tool modding modding-tools msbuild msbuild-task

Last synced: 9 days ago
JSON representation

Finds the path to an installed game from its name, with MSBuild support

Awesome Lists containing this project

README

        

# Nitrox.Discovery

[![NuGet](https://img.shields.io/nuget/v/Nitrox.Discovery.MSBuild?label=Nitrox.Discovery.MSBuild&logo=NuGet)](https://www.nuget.org/packages/Nitrox.Discovery.MSBuild)

Discovers the path to an installed game from a given game name. Supports the most popular game stores and on both Windows and Linux.

### Use with MSBuild (minimized setup)

```xml







$(GameDir)\bin\MyGameDll.dll

```

> [!IMPORTANT]
> `Condition="'$(_NitroxDiscovery_TaskAssembly)' != ''"` is needed so Visual Studio can still load Nuget packages without requiring `DiscoverGame` task to exist!

#### These options are available for `DiscoverGame` task

https://github.com/SubnauticaNitrox/Nitrox.Discovery/blob/7c018aa3fd9f05ad012fe91ccb8a535ffbd5b2c5/Nitrox.Discovery.MSBuild/DiscoverGame.cs#L21-L47

### Recommended setup

```xml



MY_GAME






$(GameDir)\





$(GameDir)bin\MyGameDll.dll

```

### You can append other references on a per project basis like this

```xml



$(GameDir)bin\SomeOtherGameDll.dll

```