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
- Host: GitHub
- URL: https://github.com/subnauticanitrox/nitrox.discovery
- Owner: SubnauticaNitrox
- License: mit
- Created: 2024-08-22T03:28:34.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-04-02T06:41:35.000Z (about 1 month ago)
- Last Synced: 2025-04-02T07:31:19.549Z (about 1 month ago)
- Topics: game-mod-tool, modding, modding-tools, msbuild, msbuild-task
- Language: C#
- Homepage:
- Size: 134 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Nitrox.Discovery
[](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
```