Build Instructions for WinUI3 Version on Windows (.NET MAUI) - hyvanmielenpelit/GnollHack GitHub Wiki
Preparations
Devices
You need the following devices to follow these instructions:
- Windows computer — Windows 10 or later, 16 GB or 32 GB RAM, 512 GB or 1 TB SSD space.
Software
- Install the latest Visual Studio version with up-to-date support for .NET MAUI 9.0 Preview 4.
- Clone this GnollHack repository — Clone Repository in Visual Studio.
Build
- Install Tile Sets and FMOD Sound Banks.
- Install Secrets File.
- (You probably do not need to build Android or iOS Xamarin.Forms apps. They will create various files for the .NET MAUI app based on Xamarin.Forms files, but most likely you won't need these files for .NET MAUI Windows version.)
- Locate
GnollHack.sln
inwin\win32\vs
directory and open it — Open GnollHack Solution in Visual Studio. - Choose the x64 solution platform in the menu bar.
- Select Debug as your solution configuration. You can also use Release, when you plan to build a release build.
- Rebuild GnollHack solution.
- This will create NetHack game data file called
nhdat
in Windows format and copy it together withcredit
,defaults.gnh
,license
,symbols
,sysconf
, andxcredits
towin\win32\xpl\GnollHackM\Platforms\Windows\gnh
. - (It will also build ASCII and GUI versions of GnollHack. You may want to check out Build Instructions for ASCII Version on Windows and Build Instructions for Windows GUI Version on Windows for reference.)
- This will create NetHack game data file called
- Locate
GnollHackM.sln
inwin\win32\xpl\GnollHackM
directory and open it in Visual Studio. - Rebuild the GnollHackM solution.
Starting Debugging or Creating Archive
- Open GnollHackM Solution in Visual Studio. This is different from the normal GnollHack solution.
- Select the right solution configuration in the menu bar:
- Debugging — Select Debug.
- Archiving — Select Release.
Debugging
- Rebuild Solution.
- Hit the green Start button to start debugging.